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:
Andreas Scheuring 2018-03-16 13:25:25 +01:00
parent 6a69a7b22d
commit bbf4f71eea
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ class PartitionInstance(object):
def power_on_vm(self):
LOG.debug('Partition power on triggered')
self.partition.pull_full_properties()
self._ensure_status_transitioned()
if self.partition.get_property(