From 053fe398ce8dbce2e72ba8d63b7ea6087e0786fd Mon Sep 17 00:00:00 2001 From: Hui Xiang Date: Tue, 30 Sep 2014 11:41:06 +0800 Subject: [PATCH] Fix error. --- hooks/hooks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hooks/hooks.py b/hooks/hooks.py index 390288ed..fdf38798 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -62,7 +62,6 @@ def install_upstart_scripts(): def install(): add_source(config('source'), config('key')) apt_update(fatal=True) - apt_install(packages=ceph.PACKAGES, fatal=True) install_upstart_scripts() @@ -140,7 +139,7 @@ def get_mon_hosts(): get_host_ip(relation_get('private-address', unit, relid)) if addr: - hosts.append('{}:6789'.format(format_ipv6_addr(addr or addr))) + hosts.append('{}:6789'.format(format_ipv6_addr(addr) or addr)) hosts.sort() return hosts