Merge lp:~rcj/charms/trusty/ubuntu-repository-cache/lp1499353 into lp:charms/trusty/ubuntu-repository-cache

Proposed by Robert C Jennings
Status: Merged
Merged at revision: 203
Proposed branch: lp:~rcj/charms/trusty/ubuntu-repository-cache/lp1499353
Merge into: lp:charms/trusty/ubuntu-repository-cache
Diff against target: 12 lines (+1/-1)
1 file modified
lib/ubuntu_repository_cache/util.py (+1/-1)
To merge this branch: bzr merge lp:~rcj/charms/trusty/ubuntu-repository-cache/lp1499353
Reviewer Review Type Date Requested Status
Dan Watkins (community) Approve
Charles Butler (community) Approve
charmers Pending
Review via email: mp+272238@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Charles Butler (lazypower) wrote :

+1 LGTM

Nice catch robert! Thanks for the fix

review: Approve
Revision history for this message
Dan Watkins (oddbloke) :
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/util.py'
2--- lib/ubuntu_repository_cache/util.py 2015-09-11 15:51:59 +0000
3+++ lib/ubuntu_repository_cache/util.py 2015-09-24 13:12:28 +0000
4@@ -25,7 +25,7 @@
5 '''Return whether the unit is in the failover state'''
6
7 config = hookenv.config()
8- return 'failover' in config and 'failover' in config
9+ return 'failover' in config and config['failover']
10
11
12 def set_failover(failover=True):

Subscribers

People subscribed via source and target branches

to all changes: