Merge lp:~bigdata-dev/charms/trusty/apache-flume-syslog/trunk into lp:charms/trusty/apache-flume-syslog

Proposed by Kevin W Monroe
Status: Merged
Merged at revision: 3
Proposed branch: lp:~bigdata-dev/charms/trusty/apache-flume-syslog/trunk
Merge into: lp:charms/trusty/apache-flume-syslog
Diff against target: 54 lines (+21/-0)
3 files modified
hooks/callbacks.py (+4/-0)
hooks/common.py (+2/-0)
hooks/flume-agent-relation-departed (+15/-0)
To merge this branch: bzr merge lp:~bigdata-dev/charms/trusty/apache-flume-syslog/trunk
Reviewer Review Type Date Requested Status
Kevin W Monroe Approve
Review via email: mp+271904@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Kevin W Monroe (kwmonroe) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/callbacks.py'
2--- hooks/callbacks.py 2015-07-28 20:19:55 +0000
3+++ hooks/callbacks.py 2015-09-22 03:37:34 +0000
4@@ -39,6 +39,10 @@
5 hookenv.status_set('active', 'Ready')
6
7
8+def clear_active_flag():
9+ unitdata.kv().set('charm.active', False)
10+
11+
12 # Main Flume Syslog class for callbacks
13 class Flume(object):
14 def __init__(self, dist_config):
15
16=== modified file 'hooks/common.py'
17--- hooks/common.py 2015-07-24 04:10:08 +0000
18+++ hooks/common.py 2015-09-22 03:37:34 +0000
19@@ -79,8 +79,10 @@
20 callbacks.update_active_status,
21 ],
22 'cleanup': [
23+ callbacks.clear_active_flag,
24 flume.stop,
25 flume.cleanup,
26+ callbacks.update_blocked_status,
27 ],
28 },
29 ])
30
31=== added file 'hooks/flume-agent-relation-departed'
32--- hooks/flume-agent-relation-departed 1970-01-01 00:00:00 +0000
33+++ hooks/flume-agent-relation-departed 2015-09-22 03:37:34 +0000
34@@ -0,0 +1,15 @@
35+#!/usr/bin/env python
36+# Licensed under the Apache License, Version 2.0 (the "License");
37+# you may not use this file except in compliance with the License.
38+# You may obtain a copy of the License at
39+#
40+# http://www.apache.org/licenses/LICENSE-2.0
41+#
42+# Unless required by applicable law or agreed to in writing, software
43+# distributed under the License is distributed on an "AS IS" BASIS,
44+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
45+# See the License for the specific language governing permissions and
46+# limitations under the License.
47+
48+import common
49+common.manage()
50
51=== added file 'resources/python/jujuresources-0.2.11.tar.gz'
52Binary files resources/python/jujuresources-0.2.11.tar.gz 1970-01-01 00:00:00 +0000 and resources/python/jujuresources-0.2.11.tar.gz 2015-09-22 03:37:34 +0000 differ
53=== removed file 'resources/python/jujuresources-0.2.9.tar.gz'
54Binary files resources/python/jujuresources-0.2.9.tar.gz 2015-07-24 04:11:36 +0000 and resources/python/jujuresources-0.2.9.tar.gz 1970-01-01 00:00:00 +0000 differ

Subscribers

People subscribed via source and target branches