diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-09-20 05:56:14 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-09-20 05:56:14 +0000 |
| commit | 534eafbffdc43b475d59602c5990761cc5fc3ff4 (patch) | |
| tree | b01cf7055426a47e15615bf8d4e8eab3d3bc50e9 | |
| parent | 64a45f03c180a485f72be54a1b42f23b7a752699 (diff) | |
| parent | 51cc814e435973ab2c150fddf8fda6d08ad03547 (diff) | |
Merge "Call compute manager methods with instance as keyword argument"
| -rw-r--r-- | nova/compute/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index b44d40b2c..59d4666de 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -926,7 +926,7 @@ class ComputeManager(manager.SchedulerDependentManager): """Stopping an instance on this host. Alias for power_off_instance for compatibility""" - self.power_off_instance(context, instance, + self.power_off_instance(context, instance=instance, final_state=vm_states.STOPPED) @exception.wrap_exception(notifier=notifier, publisher_id=publisher_id()) @@ -936,7 +936,7 @@ class ComputeManager(manager.SchedulerDependentManager): """Starting an instance on this host. Alias for power_on_instance for compatibility""" - self.power_on_instance(context, instance) + self.power_on_instance(context, instance=instance) @exception.wrap_exception(notifier=notifier, publisher_id=publisher_id()) @reverts_task_state |
