Ensure None filesystem is valid
This commit is contained in:
parent
46dde055c4
commit
666e02fbfd
|
@ -456,7 +456,9 @@ def create_vm(
|
||||||
used_filesystems.append(volume["filesystem"])
|
used_filesystems.append(volume["filesystem"])
|
||||||
|
|
||||||
for filesystem in used_filesystems:
|
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")
|
retcode, stdout, stderr = pvc_common.run_os_command("which mkswap")
|
||||||
if retcode:
|
if retcode:
|
||||||
raise ProvisioningError(
|
raise ProvisioningError(
|
||||||
|
|
Loading…
Reference in New Issue