From 502cd9fd152ddb57281643bf36cd20d3ec72dedf Mon Sep 17 00:00:00 2001 From: James Page Date: Fri, 18 Oct 2013 17:00:38 +0100 Subject: [PATCH] Add upgrade-charm hook --- hooks/ceilometer_hooks.py | 3 ++- hooks/upgrade-charm | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 120000 hooks/upgrade-charm diff --git a/hooks/ceilometer_hooks.py b/hooks/ceilometer_hooks.py index 377aa34..880e672 100755 --- a/hooks/ceilometer_hooks.py +++ b/hooks/ceilometer_hooks.py @@ -42,7 +42,8 @@ def install(): # ceilometer_utils.NOVA_SETTINGS) -@hooks.hook("ceilometer-service-relation-changed") +@hooks.hook("ceilometer-service-relation-changed", + "upgrade-charm") @restart_on_change(restart_map()) def ceilometer_changed(): CONFIGS.write_all() diff --git a/hooks/upgrade-charm b/hooks/upgrade-charm new file mode 120000 index 0000000..c948469 --- /dev/null +++ b/hooks/upgrade-charm @@ -0,0 +1 @@ +ceilometer_hooks.py \ No newline at end of file