diff --git a/client-cli/pvc.py b/client-cli/pvc.py index 2d0b8c89..40cab3b4 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -604,7 +604,7 @@ def vm_modify(domain, cfgfile, editor, restart): else: click.echo('Replacing configuration of VM "{}" with file "{}".'.format(dom_name, cfgfile.name)) - retcode, retmsg = pvc_vm.vm_modify(config, domain, new_vm_config, restart) + retcode, retmsg = pvc_vm.vm_modify(config, domain, new_vm_cfgfile, restart) cleanup(retcode, retmsg) ###############################################################################