'juju run' on leader if no unit specified

Bug #2058262 reported by Alex Lutay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Wishlist
Unassigned

Bug Description

Hi,

Proposal: is it possible to allow 'juju run' on leader if no unit specified?
Example: 'juju run mysql list-backups' will be the same as 'juju run mysql/leader list-backups'.

It will improve UX a lot without any negative implications, IMHO:
 * often when you have single unit app, you have to use /0 (or /leader which is even longer).
 * often you do not care about the unit to execute action: `juju run grafana get-credentials`
 * less to type and less to read
 * one rule to remember: specify the unit to execute your action, otherwise leader will be choosen.
 * more fun with Juju!

Thank you!

P.S. Based on Pietro great jhack improvement here: https://github.com/canonical/jhack/pull/143/files

P.P.S. the same logic also will be useful for `juju ssh`, `juju exec`, ...

Revision history for this message
Ian Booth (wallyworld) wrote :

This is an interesting idea. It seems like a nice UX improvement.

tags: added: bitesize usability
Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
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.