Ensure None filesystem is valid

This commit is contained in:
Joshua Boniface 2022-10-21 15:13:15 -04:00
parent 46dde055c4
commit 666e02fbfd
1 changed files with 3 additions and 1 deletions

View File

@ -456,7 +456,9 @@ def create_vm(
used_filesystems.append(volume["filesystem"])
for filesystem in used_filesystems:
if filesystem == "swap":
if filesystem is None or filesystem == "None":
continue
elif filesystem == "swap":
retcode, stdout, stderr = pvc_common.run_os_command("which mkswap")
if retcode:
raise ProvisioningError(