Filter VM UUIDs #10 (#17)

* is it my?

* Issues #8 Config Edit changes

* Patch #8

* vm_tags

* Changed

* deleted

* deleted conf

* patch to domain sub menu
This commit is contained in:
Seting-dev
2025-05-29 17:19:43 +03:00
committed by GitHub
parent 1f4c614c28
commit daba29f208
2 changed files with 53 additions and 12 deletions

14
main.py
View File

@@ -22,9 +22,8 @@ while(menu_choice != ""): #main menu loop
menu_options=f"[gold bold][1] [grey53 italic]Manage utility config\n[/grey53 italic] \
\n[gold bold][2] [grey53 italic]Enter disk edit mode[/grey53 italic]\n \
\n[gold bold][3] [grey53 italic]Show breif cluster overview[/grey53 italic]\n \
\n[gold bold][4] [grey53 italic]Show VM info \n (for selected VMs in config)[/grey53 italic]\n \
\n[gold bold][4] [grey53 italic]Show VM info[/grey53 italic]\n \
\n[gold bold][5] [grey53 italic]Show data pools[/grey53 italic]\n \
\n[gold bold][6] [grey53 italic]Show VMs Name / UUID[/grey53 italic]\n \
\n\n[green_yellow bold]ENTER - exit Utility[/]\n\n \
[underline bold grey53]Currently imported config:[/]\n \
[bold grey53]Connected to Controller: [bright_yellow]{base_url}[/]\n Selected Data Pool: [bright_yellow]{data_pool_name}[/]\n Selected VMs:\n [bright_yellow]{vm_names}"
@@ -39,15 +38,8 @@ while(menu_choice != ""): #main menu loop
if menu_choice == "3":
cluster_info(base_url , api_key)
if menu_choice == "4":
os.system('cls' if os.name=='nt' else 'clear')
for x in vm_uuids:
vm_info(base_url , api_key , x)
Prompt.ask("[green_yellow bold]Press ENTER to proceed.. :right_arrow_curving_down:")
vm_menu(base_url , api_key, vm_uuids)
if menu_choice == "5":
show_data_pools(base_url , api_key)
if menu_choice == "6":
vm_info_short(base_url , api_key)
if menu_choice == "7":
check_api_key(base_url, api_key)
os.system('cls' if os.name=='nt' else 'clear') #clears screen before looping back to main menu
console.print("[red bold]Exiting Utility ")
console.print("[red bold]Exiting Utility ")