Pull full partition properties before powering on partition
The partition status attribute is not being updated automatically. Before doing the poweron, we need to get the current status. Otherwise wemight try to stop an already stopped partition, only as the old status "paused" is still kept in the object. Change-Id: I6971866e42d4c9a3cab225d52c95ed33a2035f0c
This commit is contained in:
parent
6a69a7b22d
commit
bbf4f71eea
|
@ -397,6 +397,7 @@ class PartitionInstance(object):
|
||||||
def power_on_vm(self):
|
def power_on_vm(self):
|
||||||
LOG.debug('Partition power on triggered')
|
LOG.debug('Partition power on triggered')
|
||||||
|
|
||||||
|
self.partition.pull_full_properties()
|
||||||
self._ensure_status_transitioned()
|
self._ensure_status_transitioned()
|
||||||
|
|
||||||
if self.partition.get_property(
|
if self.partition.get_property(
|
||||||
|
|
Loading…
Reference in New Issue