Remove lingering OVA references

This commit is contained in:
Joshua Boniface 2022-10-06 00:13:11 -04:00
parent 43feb33caa
commit 58ce133c8d
1 changed files with 21 additions and 29 deletions

View File

@ -227,11 +227,6 @@ def create_vm(
else:
vm_data["script_arguments"] = []
if profile_data.get("profile_type") == "ova":
is_ova_install = True
else:
is_ova_install = False
# Get the system details
query = "SELECT * FROM system_template WHERE id = %s"
args = (profile_data["system_template"],)
@ -446,7 +441,6 @@ def create_vm(
print("There is enough space on cluster to store VM volumes")
if not is_ova_install:
# Verify that every specified filesystem is valid
used_filesystems = list()
for volume in vm_data["volumes"]:
@ -468,9 +462,7 @@ def create_vm(
)
if retcode:
raise ProvisioningError(
"Failed to find binary for mkfs.{}: {}".format(
filesystem, stderr
)
"Failed to find binary for mkfs.{}: {}".format(filesystem, stderr)
)
print("All selected filesystems are valid")