Merge "Workaround for virtualbox domain resuming"

This commit is contained in:
Jenkins
2014-10-14 11:48:27 +00:00
committed by Gerrit Code Review

View File

@@ -327,7 +327,9 @@ class DevopsDriver(object):
:type node: Node
:rtype : None
"""
self.conn.lookupByUUIDString(node.uuid).resume()
domain = self.conn.lookupByUUIDString(node.uuid)
if domain.state == libvirt.VIR_DOMAIN_PAUSED:
domain.resume()
@retry()
def node_shutdown(self, node):