Use single-quotes so Python isn't confused
This commit is contained in:
parent
09c1bb6a46
commit
0dd719a682
|
@ -1591,9 +1591,9 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True, script_r
|
|||
|
||||
# Make sure any bind mounts or submounts are unmounted first
|
||||
if volume['mountpoint'] == '/':
|
||||
retcode, stdout, stderr = pvc_common.run_os_command("umount {}/**{/**,}".format(mount_path))
|
||||
retcode, stdout, stderr = pvc_common.run_os_command('umount {}/**{/**,}'.format(mount_path))
|
||||
|
||||
retcode, stdout, stderr = pvc_common.run_os_command("umount {}".format(mount_path))
|
||||
retcode, stdout, stderr = pvc_common.run_os_command('umount {}'.format(mount_path))
|
||||
if retcode:
|
||||
print('Failed to unmount "{}": {}'.format(mount_path, stderr))
|
||||
|
||||
|
|
Loading…
Reference in New Issue