diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-02-21 21:49:14 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-02-21 21:49:14 +0000 |
| commit | bdb73e20585e330a0d81bdbbb197d038c2601967 (patch) | |
| tree | 85c1eb6a3d58f187ae51dc172e53fad9003e71f9 /nova | |
| parent | 32334b6bd4230be4cdf5023f15cfb5bffc308ce0 (diff) | |
| parent | 8c8116f2282229b50d6922ca6006f98a1822693e (diff) | |
| download | nova-bdb73e20585e330a0d81bdbbb197d038c2601967.tar.gz nova-bdb73e20585e330a0d81bdbbb197d038c2601967.tar.xz nova-bdb73e20585e330a0d81bdbbb197d038c2601967.zip | |
Merge "Fix ComputeAPI.get_host_uptime"
Diffstat (limited to 'nova')
| -rwxr-xr-x | nova/compute/manager.py | 4 | ||||
| -rw-r--r-- | nova/tests/compute/test_rpcapi.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index afeb9f02e..81750921c 100755 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -2394,9 +2394,9 @@ class ComputeManager(manager.SchedulerDependentManager): return self.driver.set_host_enabled(host, enabled) @exception.wrap_exception(notifier=notifier, publisher_id=publisher_id()) - def get_host_uptime(self, context, host): + def get_host_uptime(self, context): """Returns the result of calling "uptime" on the target host.""" - return self.driver.get_host_uptime(host) + return self.driver.get_host_uptime(self.host) @exception.wrap_exception(notifier=notifier, publisher_id=publisher_id()) @wrap_instance_fault diff --git a/nova/tests/compute/test_rpcapi.py b/nova/tests/compute/test_rpcapi.py index a78a13883..55318a064 100644 --- a/nova/tests/compute/test_rpcapi.py +++ b/nova/tests/compute/test_rpcapi.py @@ -162,6 +162,9 @@ class ComputeRpcAPITestCase(test.TestCase): self._test_compute_api('get_diagnostics', 'call', instance=self.fake_instance) + def test_get_host_uptime(self): + self._test_compute_api('get_host_uptime', 'call') + def test_get_vnc_console(self): self._test_compute_api('get_vnc_console', 'call', instance=self.fake_instance, console_type='type') |
