Add ova as valid name in addition to default_ova

This commit is contained in:
Joshua Boniface 2022-10-21 14:13:40 -04:00
parent 62d5ff11df
commit bd2208e8f6
1 changed files with 9 additions and 7 deletions

View File

@ -168,7 +168,9 @@ def delete_ova(zkhandler, name):
@ZKConnection(config)
def upload_ova(zkhandler, pool, name, ova_size):
# Check that we have a default_ova provisioning script
# Check that we have an ova or default_ova provisioning script
_, retcode = provisioner.list_script("ova", is_fuzzy=False)
if retcode != 200:
_, retcode = provisioner.list_script("default_ova", is_fuzzy=False)
if retcode != 200:
output = {