Fix error.
This commit is contained in:
parent
1b187c661b
commit
357eef9ee9
@ -114,7 +114,7 @@ class MonitorNeutronAgentsDaemon(Daemon):
|
|||||||
|
|
||||||
def get_hostname(self):
|
def get_hostname(self):
|
||||||
if not self.hostname:
|
if not self.hostname:
|
||||||
self.hostname = socket.get_hostname()
|
self.hostname = socket.gethostname()
|
||||||
return self.hostname
|
return self.hostname
|
||||||
|
|
||||||
def get_root_helper(self):
|
def get_root_helper(self):
|
||||||
|
@ -667,7 +667,7 @@ def install_legacy_ha_files(update=False):
|
|||||||
if config('ha-legacy-mode'):
|
if config('ha-legacy-mode'):
|
||||||
init_external_agent_f(update=update)
|
init_external_agent_f(update=update)
|
||||||
init_monitor_daemon(update=update)
|
init_monitor_daemon(update=update)
|
||||||
init_monitor_conf_files()
|
init_monitor_conf_files(update=update)
|
||||||
#init_canonical_ping_file()
|
#init_canonical_ping_file()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user