Better output

This commit is contained in:
Joshua Boniface 2018-06-11 22:09:18 -04:00
parent 069696dbd4
commit 8559e429ce
1 changed files with 3 additions and 3 deletions

View File

@ -242,14 +242,14 @@ class VMInstance:
ansiiprint.echo('VM state change for "{}": {} {}'.format(self.domuuid, self.state, self.hypervisor), '', 'i') ansiiprint.echo('VM state change for "{}": {} {}'.format(self.domuuid, self.state, self.hypervisor), '', 'i')
print('got here') print('{} got here'.format(self.domuuid))
# Conditional pass one - If we're already doing something, bail out # Conditional pass one - If we're already doing something, bail out
if self.instart == True or self.instop == True or self.inshutdown == True or self.inmigrate == True or self.inreceive == True: if self.instart == True or self.instop == True or self.inshutdown == True or self.inmigrate == True or self.inreceive == True:
return 0 return 0
print('got there') print('{} got there'.format(self.domuuid))
print(running) print('{} {}'.format(self.domuuid, running))
# VM should be stopped # VM should be stopped
if running == libvirt.VIR_DOMAIN_RUNNING and self.state == "stop" and self.hypervisor == self.thishypervisor.name: if running == libvirt.VIR_DOMAIN_RUNNING and self.state == "stop" and self.hypervisor == self.thishypervisor.name: