Fix power on and off spawn tasks

Fix the parameters to the power_on and power_off calls in the
spawn tasks.

Change-Id: I2442731d9cea4937594af57052dc802d85c8693b
This commit is contained in:
Kyle L. Henderson 2015-01-23 13:05:39 -06:00
parent a89cd84ec0
commit 9af5378a88
1 changed files with 6 additions and 2 deletions

View File

@ -205,12 +205,16 @@ def tf_power_on(adapter, host_uuid, instance):
def _task(adapter, host_uuid, instance, lpar_crt_resp):
LOG.info(_LI('Powering on instance: %s') % instance.name)
power.power_on(adapter, host_uuid, lpar_crt_resp.entry)
power.power_on(adapter,
pvm_lpar.LogicalPartition(lpar_crt_resp.entry),
host_uuid)
def _revert(adapter, host_uuid, instance, lpar_crt_resp, result,
flow_failures):
LOG.info(_LI('Powering off instance: %s') % instance.name)
power.power_off(adapter, lpar_crt_resp.entry, host_uuid,
power.power_off(adapter,
pvm_lpar.LogicalPartition(lpar_crt_resp.entry),
host_uuid,
force_immediate=True)
return task.FunctorTask(