def _get_hypervisor_hostname(self):
    'Returns the hostname of the hypervisor.'
    hostname = self._conn.getHostname()
    if (not hasattr(self, '_hypervisor_hostname')):
        self._hypervisor_hostname = hostname
    elif (hostname != self._hypervisor_hostname):
        LOG.error(_LE('Hostname has changed from %(old)s to %(new)s. A restart is required to take effect.'), {'old': self._hypervisor_hostname, 'new': hostname})
    return self._hypervisor_hostname
Returns the hostname of the hypervisor.
def _get_hypervisor_hostname(self):
    
    hostname = self._conn.getHostname()
    if (not hasattr(self, '_hypervisor_hostname')):
        self._hypervisor_hostname = hostname
    elif (hostname != self._hypervisor_hostname):
        LOG.error(_LE('Hostname has changed from %(old)s to %(new)s. A restart is required to take effect.'), {'old': self._hypervisor_hostname, 'new': hostname})
    return self._hypervisor_hostname