- Changed "disk edit mode" into function and moved to new module

- Changed config sub menu into function and moved to config_data_import module
- New function config_show
- Fixed create disk option in disk edit mode
- A few formatting changes in menus
This commit is contained in:
OVERLORD7F
2025-05-16 12:17:51 +03:00
parent b6fb2b14e6
commit da756a8ba6
4 changed files with 90 additions and 64 deletions

View File

@@ -147,7 +147,7 @@ def create_and_attach_disk(base_url , api_key , vm_id, data_pool_uuid, vdisk_siz
}
response = requests.post(url , headers=headers, json=payload)
if response.status_code == 200:
print(f"\nvDisk {disk_name} - {vdisk_size}GB has been created")
print(f"vDisk {disk_name} - {vdisk_size}GB has been created and attached to VM - {vm_id}")
return True
else:
print(f"ERROR creating vDisk :\n {response.status_code} - {response.text}")