Implement get_hypervisor_hostname for libvirt.

Implements get_hypervisor_hostname so that the
OS-EXT-SRV-ATTR:hypervisor_hostname extension can properly
display this information when using libvirt.

Fixes LP Bug #999729.

Change-Id: I124d48ca352dc225f88999046f9d212ffb9e4c6e
This commit is contained in:
Dan Prince
2012-05-15 10:54:13 -04:00
parent b29263ae98
commit 173bf4edcc
2 changed files with 7 additions and 0 deletions

View File

@@ -507,6 +507,9 @@ class Connection(object):
def getVersion(self):
return 14000
def getHostname(self):
return 'compute1'
def getCapabilities(self):
return '''<capabilities>
<host>