Fix error.

This commit is contained in:
Hui Xiang 2014-12-22 17:45:28 +08:00
parent 1b187c661b
commit 357eef9ee9
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class MonitorNeutronAgentsDaemon(Daemon):
def get_hostname(self):
if not self.hostname:
self.hostname = socket.get_hostname()
self.hostname = socket.gethostname()
return self.hostname
def get_root_helper(self):

View File

@ -667,7 +667,7 @@ def install_legacy_ha_files(update=False):
if config('ha-legacy-mode'):
init_external_agent_f(update=update)
init_monitor_daemon(update=update)
init_monitor_conf_files()
init_monitor_conf_files(update=update)
#init_canonical_ping_file()