Merge lp:~lazypower/charms/trusty/etcd/bump-to-seven into lp:charms/trusty/etcd

Proposed by Charles Butler
Status: Rejected
Rejected by: Charles Butler
Proposed branch: lp:~lazypower/charms/trusty/etcd/bump-to-seven
Merge into: lp:charms/trusty/etcd
Diff against target: 33 lines (+11/-0) (has conflicts)
2 files modified
hooks/client-relation-changed (+6/-0)
hooks/client-relation-joined (+5/-0)
Text conflict in hooks/client-relation-changed
Text conflict in hooks/client-relation-joined
To merge this branch: bzr merge lp:~lazypower/charms/trusty/etcd/bump-to-seven
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+286565@code.launchpad.net

Description of the change

Missed a /g on the original sed that landed in etcd-6

This patches that behavior

To post a comment you must log in.

Unmerged revisions

21. By Charles Butler

Patch rev-6 to replace all instances of 7001 with 4001

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/client-relation-changed'
2--- hooks/client-relation-changed 2016-02-17 21:41:50 +0000
3+++ hooks/client-relation-changed 2016-02-18 20:25:56 +0000
4@@ -4,7 +4,13 @@
5 leader=$(is-leader)
6 if [[ $leader == True ]]; then
7 connection_string=$(chlp unitdata get etcd.connection_string)
8+<<<<<<< TREE
9 patched_string=$(echo $connection_string | sed "s/7001/4001/")
10+=======
11+ # This is a temporary fix prior to interface:etcd supplanting this charm
12+ patched_string=$(echo $connection_string | sed 's/7001/4001/g')
13+
14+>>>>>>> MERGE-SOURCE
15 # maintain some backwords compatibility with the existing interface until it
16 # is phased out w/ the layer rewrite.
17 relation-set connection_string=$patched_string port=4001 public_address=`unit-get public-address`
18
19=== modified file 'hooks/client-relation-joined'
20--- hooks/client-relation-joined 2016-02-17 21:41:50 +0000
21+++ hooks/client-relation-joined 2016-02-18 20:25:56 +0000
22@@ -6,6 +6,11 @@
23 connection_string=$(chlp unitdata get etcd.connection_string)
24 patched_string=$(echo $connection_string | sed "s/7001/4001/")
25 # maintain some backwords compatibility with the existing interface until it
26+<<<<<<< TREE
27 # is phased out w/ the layer rewrite.
28 relation-set connection_string=$patched_string port=4001 public_address=`unit-get public-address`
29+=======
30+ patched_string=$(echo $connection_string | sed 's/7001/4001/g')
31+ relation-set connection_string=$patched_string port=4001 public_address=`unit-get public-address`
32+>>>>>>> MERGE-SOURCE
33 fi

Subscribers

People subscribed via source and target branches

to all changes: