juju show-model does not accept model as kwarg

Bug #1596593 reported by Richard Harding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Horacio Durán

Bug Description

juju show-model will default to your current model. It should accept the model name as a kwarg so that you can do:

  juju show-model default

Currently you get:

  error: unrecognized args: ["admin"]

tags: added: 2.0 usability
Revision history for this message
Cheryl Jennings (cherylj) wrote :

The model name can be specified with -m, so it shouldn't be too hard to accept a keyword arg.

However, we should consider changing it to be a controller command so that it would take a -c flag to specify the controller, rather than -m to specify the model.

tags: added: bitesize
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Horacio Durán (hduran-8)
Revision history for this message
Horacio Durán (hduran-8) wrote :

I made model a positional argument

you can now invoke:

juju show-model # this shows the default model

juju show-model <model> # this shows <model> model

juju show-model <controller>:<model> # this shows <model> model from <controller> controller.

the PR for this is:

https://github.com/juju/juju/pull/5747

Changed in juju-core:
milestone: none → 2.0.0
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0.0 → 2.0-beta15
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta15 → 2.0-beta16
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta16 → none
milestone: none → 2.0-beta16
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.