maas-cli argument handling inconsistencies
Bug #1099920 reported by
Daniel Westervelt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Low
|
Unassigned |
Bug Description
with some maas-cli cmdlines it seems key:value (name=value) pairs are required to be stated explicitly while others just require value. For instance consider the following two cmdlines:
FAILS: (with value only)
maas-cli admin nodes accept node-5bf10db6-
'node-5bf10db6-
WORKS: (with name=value)
maas-cli admin nodes accept system_
While node actions only require (value) to work - see below:
maas-cli admin node release node-5bf10db6-
maas-cli admin node stop node-5bf10db6-
etc...
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: api |
tags: |
added: cli removed: api |
Changed in maas: | |
milestone: | none → 2.4.x |
Changed in maas: | |
milestone: | 2.4.x → 2.6.0 |
To post a comment you must log in.
It's not so much inconsistent:
> maas-cli admin nodes accept system_ id=node- 5bf10db6- 5f24-11e2- 90e2-8c705ac92d f0
Here the `accept` call is being sent to the `nodes` handler, passing the
`system_id` argument.
> maas-cli admin node release node-5bf10db6- 5f24-11e2- 90e2-8c705ac92d f0
Here the `release` call is being sent to the node identified as 5f24-11e2- 90e2-8c705ac92d f0`.
`node-5bf10db6-
What it is, is unintuitive, especially the second one; I'd expect
`release` to be last:
maas-cli admin node node-5bf10db6- 5f24-11e2- 90e2-8c705ac92d f0 release