Merge ~ack/maas:1951398-cli-encode-as-file-3.1 into maas:3.1
Proposed by
Alberto Donato
Status: | Merged |
---|---|
Approved by: | Alberto Donato |
Approved revision: | f1e792df727eb623cca45544b2ba3a05b90a62c9 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~ack/maas:1951398-cli-encode-as-file-3.1 |
Merge into: | maas:3.1 |
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 |
---|---|---|---|
Alberto Donato (community) | Approve | ||
MAAS Lander | Approve | ||
Review via email:
|
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- 3.1 lp:~ack/maas/+git/maas into -b 3.1 lp:~maas-committers/maas
-b 1951398-
STATUS: SUCCESS 3cca45544b2ba3a 05b90a62c9
COMMIT: f1e792df727eb62