Only print file name

This commit is contained in:
Joshua Boniface 2019-04-10 16:29:26 -04:00
parent 30002f95d7
commit cbad19adfe
1 changed files with 2 additions and 2 deletions

View File

@ -358,9 +358,9 @@ def vm_modify(domain, config, editor, restart):
config.close()
if restart:
click.echo('Replacing config of VM "{}" with file "{}" and restarting.'.format(dom_name, config))
click.echo('Replacing config of VM "{}" with file "{}" and restarting.'.format(dom_name, config.name))
else:
click.echo('Replacing config of VM "{}" with file "{}".'.format(dom_name, config))
click.echo('Replacing config of VM "{}" with file "{}".'.format(dom_name, config.name))
retcode, retmsg = pvc_vm.modify_vm(zk_conn, domain, restart, new_vm_config)
cleanup(retcode, retmsg, zk_conn)