qvm-check: whitespace fixes
This commit is contained in:
parent
44da6d7940
commit
776393e97b
@ -56,19 +56,19 @@ Specify no state options to check if VM exists"""
|
||||
exit(1)
|
||||
|
||||
elif options.running:
|
||||
vm_state=not vm.is_running()
|
||||
vm_state = not vm.is_running()
|
||||
if options.verbose:
|
||||
print >> sys.stdout, "A VM with the name {0} is {1}running.".format(vmname, "not " * vm_state)
|
||||
exit(vm_state)
|
||||
|
||||
elif options.paused:
|
||||
vm_state=not vm.is_paused()
|
||||
vm_state = not vm.is_paused()
|
||||
if options.verbose:
|
||||
print >> sys.stdout, "A VM with the name {0} is {1}paused.".format(vmname, "not " * vm_state)
|
||||
exit(vm_state)
|
||||
|
||||
elif options.template:
|
||||
vm_state=not vm.is_template()
|
||||
vm_state = not vm.is_template()
|
||||
if options.verbose:
|
||||
print >> sys.stdout, "A VM with the name {0} is {1}a template.".format(vmname, "not " * vm_state)
|
||||
exit(vm_state)
|
||||
|
Loading…
Reference in New Issue
Block a user