mirror of
https://github.com/OVERLORD7F/SVMU.git
synced 2025-10-01 21:52:47 +03:00
Expanding config-related functions
- New function change_vm_uuids - New function change_data_pool
This commit is contained in:
8
main.py
8
main.py
@@ -7,7 +7,11 @@ from disk_edit_mode import *
|
||||
from rich.panel import Panel
|
||||
from rich.console import Console , Align
|
||||
|
||||
config_relative_path = os.path.join(os.getcwd() , 'SpaceVM_Utility.conf') #config.txt in the same directory with main.py
|
||||
config_relative_path = os.path.join(os.getcwd() , 'SpaceVM_Utility.conf') #config in the same directory with main.py
|
||||
|
||||
print("Reading config from:", os.path.abspath(config_relative_path))
|
||||
if not os.path.exists(config_relative_path):
|
||||
print(f"Config file not found: {config_relative_path}")
|
||||
|
||||
menu_choice=0
|
||||
console = Console()
|
||||
@@ -29,7 +33,7 @@ while(menu_choice != ""): #main menu loop
|
||||
console.print(Panel(menu_options, title="[bold magenta]SpaceVM Utility - Main Menu" , subtitle = menu_subtitle, subtitle_align="right" , style="yellow" , width=150 , padding = 2))
|
||||
menu_choice=str(input("\n>>> "))
|
||||
if menu_choice == "1":
|
||||
config_menu(config_relative_path)
|
||||
config_menu(base_url, api_key, config_relative_path)
|
||||
if menu_choice == "2":
|
||||
disk_edit_mode(base_url , api_key , data_pool_uuid , vm_uuids)
|
||||
if menu_choice == "3":
|
||||
|
Reference in New Issue
Block a user