From 8559e429ce34cf2281da7f6e0459ce6ffecd0a44 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 22:09:18 -0400 Subject: [PATCH] Better output --- VMInstance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VMInstance.py b/VMInstance.py index d0d05587..fdad01fd 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -242,14 +242,14 @@ class VMInstance: 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 if self.instart == True or self.instop == True or self.inshutdown == True or self.inmigrate == True or self.inreceive == True: return 0 - print('got there') - print(running) + print('{} got there'.format(self.domuuid)) + print('{} {}'.format(self.domuuid, running)) # VM should be stopped if running == libvirt.VIR_DOMAIN_RUNNING and self.state == "stop" and self.hypervisor == self.thishypervisor.name: