Skip to content

Commit

Permalink
Send host not ComputeNode into uptime RPC call.
Browse files Browse the repository at this point in the history
Updates the hypervisor uptime API extension to send the
correct hostname to the get_host_uptime in the compute API.

Fixes LP Bug #1035315.
Change-Id: I4840f16bd3c60063e08e2de8313ef5ed3510555e
  • Loading branch information
dprince committed Aug 10, 2012
1 parent 55cf5c3 commit acb6d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nova/api/openstack/compute/contrib/hypervisors.py
Expand Up @@ -197,7 +197,8 @@ def uptime(self, req, id):

# Get the uptime
try:
uptime = self.api.get_host_uptime(context, hyp)
host = hyp['service']['host']
uptime = self.api.get_host_uptime(context, host)
except NotImplementedError:
msg = _("Virt driver does not implement uptime function.")
raise webob.exc.HTTPNotImplemented(explanation=msg)
Expand Down

0 comments on commit acb6d78

Please sign in to comment.