Fix bad variable reference

This commit is contained in:
Joshua Boniface 2022-10-05 17:43:23 -04:00
parent cc7952c232
commit 8aaac33056
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ class VMBuilderScript(VMBuilder):
dst_volume_name,
)
print(message)
if not retcode:
if not success:
raise ProvisioningError(f"Failed to map volume '{dst_volume}'.")
# Third loop: Create filesystems on the volumes

View File

@ -307,7 +307,7 @@ class VMBuilderScript(VMBuilder):
dst_volume_name,
)
print(message)
if not retcode:
if not success:
raise ProvisioningError(f"Failed to map volume '{dst_volume}'.")
# Third loop: Create filesystems on the volumes