Merge ~ack/maas:1951398-cli-encode-as-file into maas:master
Proposed by
Alberto Donato
Status: | Merged |
---|---|
Approved by: | Alberto Donato |
Approved revision: | e9fae875d8ba461c4daa9ab35b806ef3df281ea5 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~ack/maas:1951398-cli-encode-as-file |
Merge into: | maas:master |
Diff against target: |
84 lines (+19/-17) 2 files modified
src/maascli/api.py (+16/-15) src/maascli/tests/test_api.py (+3/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Björn Tillenius | Approve | ||
MAAS Lander | Approve | ||
Review via email: mp+412070@code.launchpad.net |
Commit message
LP:1951398 keep @= parameters as uploaded files for POST actions
When @= is used in the CLI to read a parameter from file, only read the content
directly if the action is GET or DELETE, otherwise pass it as a file, so that
it gets multipart-encoded correctly (the filename= parameter is set in the
Content-Disposition header).
To post a comment you must log in.
UNIT TESTS cli-encode- as-file lp:~ack/maas/+git/maas into -b master lp:~maas-committers/maas
-b 1951398-
STATUS: SUCCESS c4daa9ab35b806e f3df281ea5
COMMIT: e9fae875d8ba461