From 0892e4c842928e9189cdf043955df07c17c12f14 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 23 Jan 2020 11:33:09 -0500 Subject: [PATCH] Fix overlapping name config in VM define --- client-cli/pvc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index fcdc260c..aca81a4b 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -510,18 +510,18 @@ def cli_vm(): help='Start VM automatically on next unflush/ready state of home node; unset by daemon once used.' ) @click.argument( - 'config', type=click.File() + 'vmconfig', type=click.File() ) -def vm_define(config, target_node, node_limit, node_selector, node_autostart): +def vm_define(vmconfig, target_node, node_limit, node_selector, node_autostart): """ - Define a new virtual machine from Libvirt XML configuration file CONFIG. + Define a new virtual machine from Libvirt XML configuration file VMCONFIG. """ # Open the XML file - config_data = config.read() - config.close() + vmconfig_data = vmconfig.read() + vmconfig.close() - retcode, retmsg = pvc_vm.define_vm(config, config_data, target_node, node_limit, node_selector, node_autostart) + retcode, retmsg = pvc_vm.define_vm(config, vmconfig_data, target_node, node_limit, node_selector, node_autostart) cleanup(retcode, retmsg) ###############################################################################