diff options
| author | matt.dietz@rackspace.com <> | 2011-08-18 16:23:08 -0500 |
|---|---|---|
| committer | matt.dietz@rackspace.com <> | 2011-08-18 16:23:08 -0500 |
| commit | e877efe3b1de00d8b2eb3139ee60fd6c2464ce7d (patch) | |
| tree | 0079c00a46f822097b71f58db9d77c8eaca8971c /nova/compute | |
| parent | 69996e83f10387b83bdc7e5e76b62fe67ea6c2ab (diff) | |
| parent | abf7e2f767e1e535f40550945af466436d0cf541 (diff) | |
Change the call name
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 3110cd92d..7c1b388c0 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -1068,7 +1068,7 @@ class API(base.Base): """Unpause the given instance.""" self._cast_compute_message('unpause_instance', context, instance_id) - def _make_compute_call_for_host(self, context, host, params): + def _call_compute_message_for_host(self, context, host, params): """Call method deliberately designed to make host/service only calls""" queue = self.db.queue_get_for(context, FLAGS.compute_topic, host) kwargs = {'method': method, 'args': params} @@ -1076,13 +1076,13 @@ class API(base.Base): def set_host_enabled(self, context, host, enabled): """Sets the specified host's ability to accept new instances.""" - return self._make_compute_call_for_host("set_host_enabled", context, + return self._call_compute_message_for_host("set_host_enabled", context, host=host, params={"enabled": enabled}) def host_power_action(self, context, host, action): """Reboots, shuts down or powers up the host.""" - return self._make_compute_call_for_host("host_power_action", context, - host=host, params={"action": action}) + return self._call_compute_message_for_host("host_power_action", + context, host=host, params={"action": action}) @scheduler_api.reroute_compute("diagnostics") def get_diagnostics(self, context, instance_id): |
