Not obvious how to juju run commands which have their own arguments
Bug #1637819 reported by
James Troup
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
John A Meinel | ||
2.1 |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
'juju help run' says:
| usage: juju run [options] <commands>
So I try:
| $ /srv/juju-
| error: flag provided but not defined: -f
| $
Weird nomenclature, but OK. Let's try the standard "stop parsing
command line options from here":
| $ /srv/juju-
| error: unrecognized args: ["-f"]
| $
So either, juju should respect '--' or the help text should make it
more obvious how to run commands with 'juju run' which include command
line options, e.g. by putting the string inside quotes.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Alexis Bruemmer (alexis-bruemmer) |
milestone: | none → 2.1.0-beta2 |
tags: | added: usability |
Changed in juju: | |
milestone: | 2.1-beta2 → none |
Changed in juju: | |
milestone: | none → 2.1-rc1 |
Changed in juju: | |
milestone: | 2.1-beta4 → 2.1-rc1 |
Changed in juju: | |
assignee: | Alexis Bruemmer (alexis-bruemmer) → nobody |
Changed in juju: | |
milestone: | 2.1-rc1 → 2.2.0-alpha1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
FWIW, you can do this:
juju run --application= os-room1, os-room2, os-room3 'hostname -f'
But that's dumb, and we should support multiple args. I'll fix that.