Merge lp:~matsubara/maas/fix-MAAS_URL-quotes-precise into lp:~maas-maintainers/maas/packaging.precise.sru

Proposed by Diogo Matsubara
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 171
Merged at revision: 171
Proposed branch: lp:~matsubara/maas/fix-MAAS_URL-quotes-precise
Merge into: lp:~maas-maintainers/maas/packaging.precise.sru
Diff against target: 12 lines (+1/-1)
1 file modified
debian/maas-cluster-controller.postinst (+1/-1)
To merge this branch: bzr merge lp:~matsubara/maas/fix-MAAS_URL-quotes-precise
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+160725@code.launchpad.net

Commit message

Fix the way MAAS_URL is quoted.

Description of the change

Fix the way MAAS_URL is quoted.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/maas-cluster-controller.postinst'
--- debian/maas-cluster-controller.postinst 2013-04-11 12:41:03 +0000
+++ debian/maas-cluster-controller.postinst 2013-04-24 17:42:32 +0000
@@ -83,7 +83,7 @@
83 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.83 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.
84 db_get maas-cluster-controller/maas-url || true84 db_get maas-cluster-controller/maas-url || true
85 if [ -n "$RET" ]; then85 if [ -n "$RET" ]; then
86 sed -i "s|MAAS_URL=.*|MAAS_URL='$RET'|" /etc/maas/maas_cluster.conf86 sed -i "s|MAAS_URL=.*|MAAS_URL=\"$RET\"|" /etc/maas/maas_cluster.conf
87 # Extract the hostname part.87 # Extract the hostname part.
88 HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] }')88 HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] }')
89 # And substitute it in-place in pserv.yaml on an indented, non-commented89 # And substitute it in-place in pserv.yaml on an indented, non-commented

Subscribers

People subscribed via source and target branches