Use single-quotes so Python isn't confused

This commit is contained in:
Joshua Boniface 2020-08-11 17:24:11 -04:00
parent 09c1bb6a46
commit 0dd719a682
1 changed files with 2 additions and 2 deletions

View File

@ -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 # Make sure any bind mounts or submounts are unmounted first
if volume['mountpoint'] == '/': 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: if retcode:
print('Failed to unmount "{}": {}'.format(mount_path, stderr)) print('Failed to unmount "{}": {}'.format(mount_path, stderr))