Merge lp:~deej/charms/precise/daisy/fix-hooks-save-cassandra into lp:~daisy-pluckers/charms/precise/daisy/trunk

Proposed by David Lawson
Status: Merged
Merged at revision: 45
Proposed branch: lp:~deej/charms/precise/daisy/fix-hooks-save-cassandra
Merge into: lp:~daisy-pluckers/charms/precise/daisy/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
hooks/common (+1/-1)
To merge this branch: bzr merge lp:~deej/charms/precise/daisy/fix-hooks-save-cassandra
Reviewer Review Type Date Requested Status
Evan (community) Approve
Review via email: mp+189889@code.launchpad.net

Description of the change

Fix common save_cassandra, sed doesn't appear to accept commas as separators.

To post a comment you must log in.
Revision history for this message
Evan (ev) wrote :

Strange, it should establish any character that follows the s-expression as the separator, but there's no harm in this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/common'
2--- hooks/common 2013-06-14 15:42:34 +0000
3+++ hooks/common 2013-10-08 15:22:15 +0000
4@@ -39,7 +39,7 @@
5 if ! grep -qs "cassandra_hosts" $LOCAL_CONFIG_PATH; then
6 echo "cassandra_hosts = ['$value']" >> $LOCAL_CONFIG_PATH
7 else
8- sed -i "s,cassandra_hosts = .*,cassandra_hosts = ['$value']," \
9+ sed -i "s/cassandra_hosts = .*/cassandra_hosts = ['$value']/" \
10 $LOCAL_CONFIG_PATH
11 fi
12 }

Subscribers

People subscribed via source and target branches

to all changes: