Merge lp:~barryprice/charms/trusty/ubuntu-repository-cache/better_nrpe_fix into lp:charms/trusty/ubuntu-repository-cache

Proposed by Barry Price
Status: Merged
Approved by: Haw Loeung
Approved revision: 210
Merged at revision: 210
Proposed branch: lp:~barryprice/charms/trusty/ubuntu-repository-cache/better_nrpe_fix
Merge into: lp:charms/trusty/ubuntu-repository-cache
Diff against target: 13 lines (+2/-1)
1 file modified
lib/ubuntu_repository_cache/service.py (+2/-1)
To merge this branch: bzr merge lp:~barryprice/charms/trusty/ubuntu-repository-cache/better_nrpe_fix
Reviewer Review Type Date Requested Status
Haw Loeung Approve
charmers Pending
Review via email: mp+284208@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Haw Loeung (hloeung) wrote :

LGTM, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/ubuntu_repository_cache/service.py'
2--- lib/ubuntu_repository_cache/service.py 2016-01-27 09:56:34 +0000
3+++ lib/ubuntu_repository_cache/service.py 2016-01-28 05:06:41 +0000
4@@ -266,7 +266,8 @@
5 def update_checks():
6 '''Update Nagios checks for all services and add overall metadata check'''
7
8- hookenv.relation_set(primary=True)
9+ for relid in hookenv.relation_ids('nrpe-external-master'):
10+ hookenv.relation_set(relation_id=relid,primary=True)
11 nrpe_config = nrpe.NRPE()
12
13 # Services

Subscribers

People subscribed via source and target branches

to all changes: