juju run support for executing file as script
Bug #1286517 reported by
Kapil Thangavelu
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned | ||
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Currently juju run expects commands as bash shell script commands on the cli. But the interface for doing this is rather finicky due to string quoting, and often nescitates transfering a script over by other means before one can run it. Simple to allow for juju run to transfer an executable over and run it.
juju run --all "echo $PWD"
will just return values for the host due to shell interpreration
ie. running python needs excessive quoting.
juju run --all 'python -c "import os; print os.path.
Better would be just
juju run --all -f myshell.sh
juju run --all -f mypy.py
which would also remove the bash assumption in juju run
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: improvement run |
Changed in juju-core: | |
importance: | High → Medium |
Changed in juju: | |
milestone: | 2.1-rc2 → none |
To post a comment you must log in.
I'll+1 Kapil's suggestion. I was pretty surprised to find out how limited 'juju run' really is.