From 357eef9ee9e35e9979e6486560a5f59ddb8c83bc Mon Sep 17 00:00:00 2001 From: Hui Xiang Date: Mon, 22 Dec 2014 17:45:28 +0800 Subject: [PATCH] Fix error. --- files/monitor.py | 2 +- hooks/quantum_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/monitor.py b/files/monitor.py index a331d153..c89825d3 100644 --- a/files/monitor.py +++ b/files/monitor.py @@ -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): diff --git a/hooks/quantum_utils.py b/hooks/quantum_utils.py index 1fdc58a5..375602d5 100644 --- a/hooks/quantum_utils.py +++ b/hooks/quantum_utils.py @@ -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()