fixed some minor stuff, might need some additional work.
This commit is contained in:
@@ -273,7 +273,7 @@ def update_env_file():
|
|||||||
count = 0
|
count = 0
|
||||||
for line in file_entries:
|
for line in file_entries:
|
||||||
count += 1
|
count += 1
|
||||||
print("{}) {}".format(count, line))
|
console.print("[bold white]{}) {}[/bold white]".format(count, line))
|
||||||
console.print("Choosing [u]0[/u] will exit the function", style="bold white")
|
console.print("Choosing [u]0[/u] will exit the function", style="bold white")
|
||||||
console.print("You will be asked to enter the new value [u]until it is valid[/u] or you enter [u]0[/u]", style="bold white")
|
console.print("You will be asked to enter the new value [u]until it is valid[/u] or you enter [u]0[/u]", style="bold white")
|
||||||
choice = prompt.ask("[bold white]Choose the entry you want to update [/bold white]")
|
choice = prompt.ask("[bold white]Choose the entry you want to update [/bold white]")
|
||||||
@@ -740,7 +740,7 @@ def list_provider_images(provider,images=None):
|
|||||||
# It also validates the user input and keeps asking for a valid one unless the user enters 0 to exit
|
# It also validates the user input and keeps asking for a valid one unless the user enters 0 to exit
|
||||||
def choose_from_list(listFromlistFunction,listName):
|
def choose_from_list(listFromlistFunction,listName):
|
||||||
if len(listFromlistFunction) == 0:
|
if len(listFromlistFunction) == 0:
|
||||||
print("No items")
|
console.print("No items", style="bold white")
|
||||||
exit(0)
|
exit(0)
|
||||||
if listName == "awsLocation":
|
if listName == "awsLocation":
|
||||||
printFormat = "[bold white]{}) {}\n\n[/bold white][bold cyan]Region name: {}[/bold cyan]\n[bold blue]Country: {}[/bold blue]\n"
|
printFormat = "[bold white]{}) {}\n\n[/bold white][bold cyan]Region name: {}[/bold cyan]\n[bold blue]Country: {}[/bold blue]\n"
|
||||||
@@ -1137,7 +1137,7 @@ def create_node(provider, name=None, location=None, size=None, image=None, confi
|
|||||||
gceNodes = driver.list_nodes()
|
gceNodes = driver.list_nodes()
|
||||||
for gceNode in gceNodes:
|
for gceNode in gceNodes:
|
||||||
if gceNode.name == name:
|
if gceNode.name == name:
|
||||||
cosole.print("A node with that name already exists under this project, please choose [u]another[/u] one", style="bold red")
|
console.print("A node with that name already exists under this project, please choose [u]another[/u] one", style="bold red")
|
||||||
exit(0)
|
exit(0)
|
||||||
existIn = False
|
existIn = False
|
||||||
firewalls = driver.ex_list_firewalls()
|
firewalls = driver.ex_list_firewalls()
|
||||||
@@ -1495,7 +1495,7 @@ def ssh(provider, port=None, awsRegion=None):
|
|||||||
while True:
|
while True:
|
||||||
if channel.recv_ready():
|
if channel.recv_ready():
|
||||||
output = channel.recv(1024)
|
output = channel.recv(1024)
|
||||||
print(output.decode())
|
console.print(output.decode(), style="bold white")
|
||||||
else:
|
else:
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
if not(channel.recv_ready()):
|
if not(channel.recv_ready()):
|
||||||
|
|||||||
Reference in New Issue
Block a user