From 5b9482be2f29f264556947e1d10a328db5310891 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 13:25:32 -0400 Subject: [PATCH] Fix double quote issue --- pvc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pvc.py b/pvc.py index acbce332..3fe7d0b1 100755 --- a/pvc.py +++ b/pvc.py @@ -178,7 +178,7 @@ def undefine_vm(dom_name, dom_uuid): message_name = dom_name else: message_name = dom_uuid - click.echo("Could not find VM "{}" in the cluster!".format(message_name)) + click.echo('Could not find VM "{}" in the cluster!'.format(message_name)) return click.echo('Forcibly stopping VM "{}".'.format(dom_uuid)) @@ -244,7 +244,7 @@ def start_vm(dom_name, dom_uuid): message_name = dom_name else: message_name = dom_uuid - click.echo("Could not find VM "{}" in the cluster!".format(message_name)) + click.echo('Could not find VM "{}" in the cluster!'.format(message_name)) return # Set the VM to start @@ -294,7 +294,7 @@ def shutdown_vm(dom_name, dom_uuid): message_name = dom_name else: message_name = dom_uuid - click.echo("Could not find VM "{}" in the cluster!".format(message_name)) + click.echo('Could not find VM "{}" in the cluster!'.format(message_name)) return # Set the VM to shutdown @@ -344,7 +344,7 @@ def stop_vm(dom_name, dom_uuid): message_name = dom_name else: message_name = dom_uuid - click.echo("Could not find VM "{}" in the cluster!".format(message_name)) + click.echo('Could not find VM "{}" in the cluster!'.format(message_name)) return # Set the VM to start @@ -402,7 +402,7 @@ def migrate_vm(dom_name, dom_uuid, target_hypervisor, force_migrate): message_name = dom_name else: message_name = dom_uuid - click.echo("Could not find VM "{}" in the cluster!".format(message_name)) + click.echo('Could not find VM "{}" in the cluster!'.format(message_name)) return current_hypervisor = zk.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') @@ -483,7 +483,7 @@ def unmigrate_vm(dom_name, dom_uuid): message_name = dom_name else: message_name = dom_uuid - click.echo("Could not find VM "{}" in the cluster!".format(message_name)) + click.echo('Could not find VM "{}" in the cluster!'.format(message_name)) return target_hypervisor = zk.get('/domains/{}/lasthypervisor'.format(dom_uuid))[0].decode('ascii')