mirror of
https://github.com/OVERLORD7F/SVMU.git
synced 2025-10-01 21:52:47 +03:00
- 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:
@@ -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}")
|
||||
|
Reference in New Issue
Block a user