fix: missing return in kvmtools/kvm/action.py shutdown()
authorJens Kasten <jens@kasten-edv.de>
Wed, 23 Nov 2011 05:22:14 +0100
changeset 60 70e7bfc80074
parent 59 8465f1e93a07
child 61 abba9906ca66
fix: missing return in kvmtools/kvm/action.py shutdown()
kvmtools/kvm/action.py
--- a/kvmtools/kvm/action.py	Wed Nov 23 05:14:04 2011 +0100
+++ b/kvmtools/kvm/action.py	Wed Nov 23 05:22:14 2011 +0100
@@ -95,6 +95,7 @@
         """
         if not self.is_running():
             print ("Guest is not running.")
+            return
         flag = 0
         if self.monitor_send(self.qemu_monitor["shutdown"]):
             self.monitor_send(self.qemu_monitor["enter"])