Merge lp:~lamont/maas/bug-1630636b into lp:~maas-committers/maas/trunk
Proposed by
LaMont Jones
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | LaMont Jones | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5482 | ||||
Proposed branch: | lp:~lamont/maas/bug-1630636b | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
156 lines (+82/-11) 3 files modified
contrib/preseeds_v2/curtin_userdata (+1/-1) src/maasserver/preseed.py (+3/-3) src/maasserver/tests/test_preseed.py (+78/-7) |
||||
To merge this branch: | bzr merge lp:~lamont/maas/bug-1630636b | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Blake Rouse (community) | Needs Information | ||
Andres Rodriguez (community) | Needs Information | ||
Review via email: mp+308300@code.launchpad.net |
Commit message
Only escape single-quotes in the "turn off pxe boot" url given to the deploying node.
Description of the change
Instead of shell escaping the URL for "turning off pxe boot", just url-escape any single-quotes, since the url is (1) enclosed in single-quotes by the template, and (2) under the control of the MAAS admin, and running (as root) on the deploying node, which he already has full control over.
Because of the [] surrounding an ipv6 literal, pipes.quote() decides to wrap the entire thing in single quotes, which was breaking the template by causing the url to be outside of the quotes.
To post a comment you must log in.
Question inline: