Merge lp:~verterok/charms/trusty/logstash/update-nrpe_on_config-changed into lp:~tanuki/charms/trusty/logstash/trunk

Proposed by Guillermo Gonzalez
Status: Merged
Approved by: Guillermo Gonzalez
Approved revision: 58
Merged at revision: 57
Proposed branch: lp:~verterok/charms/trusty/logstash/update-nrpe_on_config-changed
Merge into: lp:~tanuki/charms/trusty/logstash/trunk
Diff against target: 25 lines (+3/-1)
2 files modified
hooks/client-relation-changed (+2/-0)
hooks/config-changed (+1/-1)
To merge this branch: bzr merge lp:~verterok/charms/trusty/logstash/update-nrpe_on_config-changed
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Review via email: mp+270446@code.launchpad.net

Commit message

Call hooks/nrpe-external-master-relation-changed at the end of config-changed, and minor fix to client-relation-changed

Description of the change

Call hooks/nrpe-external-master-relation-changed at the end of config-changed, and minor fix to client-relation-changed

To post a comment you must log in.
Revision history for this message
Celso Providelo (cprov) wrote :

+1, yay, sane LS at last.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/client-relation-changed'
--- hooks/client-relation-changed 2015-09-08 17:11:30 +0000
+++ hooks/client-relation-changed 2015-09-08 20:10:04 +0000
@@ -29,6 +29,8 @@
29def write_config():29def write_config():
30 with open('host_cache', 'r') as f:30 with open('host_cache', 'r') as f:
31 hosts = f.readlines()31 hosts = f.readlines()
32 if not hosts:
33 sys.exit(0)
3234
33 # Use last host in list as it will be the most recently added35 # Use last host in list as it will be the most recently added
34 # and first host in list may not exist anymore! TODO fix that.36 # and first host in list may not exist anymore! TODO fix that.
3537
=== modified file 'hooks/config-changed'
--- hooks/config-changed 2015-09-08 17:11:30 +0000
+++ hooks/config-changed 2015-09-08 20:10:04 +0000
@@ -49,7 +49,7 @@
49 # Restart the service when configuration has changed.49 # Restart the service when configuration has changed.
50 subprocess.check_output(shlex.split('hooks/start'))50 subprocess.check_output(shlex.split('hooks/start'))
5151
52 # TODO: should call update_nrpe_checks() here. See charmsupport/nrpe.py52 subprocess.check_output(shlex.split('hooks/nrpe-external-master-relation-changed'))
5353
5454
55def copy_config():55def copy_config():

Subscribers

People subscribed via source and target branches