Merge lp:~cyphermox/maas/maas-enlist-wget-not-curl into lp:~maas-maintainers/maas/maas-enlist
Proposed by
Mathieu Trudel-Lapierre
Status: | Merged |
---|---|
Merged at revision: | 42 |
Proposed branch: | lp:~cyphermox/maas/maas-enlist-wget-not-curl |
Merge into: | lp:~maas-maintainers/maas/maas-enlist |
Diff against target: |
60 lines (+17/-15) 1 file modified
bin/maas-enlist (+17/-15) |
To merge this branch: | bzr merge lp:~cyphermox/maas/maas-enlist-wget-not-curl |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Needs Fixing | ||
Review via email: mp+270110@code.launchpad.net |
Description of the change
Use wget instead of curl.
At the very least, this allows maas-enlist to work as a d-i module, for use with "Multiple installs using MAAS" from the server CD boot menu.
To post a comment you must log in.
In this case it looks like the original curl implementation is more robust, since it URL encodes the parameters properly, whereas the wget implementation will just concatenate them into the URL string.
I would rather split this into enlist_node_wget() and enlist_node_curl() and have a --wget parameter to choose the wget backend if desired, leaving the curl backend the default.