Juju SCP help text is unclear on how to pass additional arguments
Bug #1387640 reported by
Chris Glass
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
Despite what the documentation says, one cannot pass extra scp arguments to "juju scp".
The documentation (juju scp -h) states:
usage: juju scp [options] <file1> ... <file2> [scp-option...]
Example:
"juju scp -e local 0:/etc/hosts /tmp/ -C"
Problem:
ERROR exit status 1 (-C: No such file or directory)
I tried several other possibilities, including:
"juju scp -e local 0:/etc/hosts /tmp/ -- -C"
"juju scp -e local-C 0:/etc/hosts /tmp/"
But none of them produce the expected behavior.
Changed in juju-core: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in juju-core: | |
importance: | High → Medium |
summary: |
- Juju SCP does not allow passing of arguments to the underlying scp + Juju SCP help text is unclear on how to pass additional arguments |
Changed in juju-core: | |
milestone: | none → 1.21 |
Changed in juju-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Andrew Wilkins (axwalk) |
Changed in juju-core: | |
milestone: | 1.21 → 1.21-alpha3 |
status: | In Progress → Fix Committed |
tags: | added: regression |
Changed in juju-core: | |
importance: | Medium → High |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I found an invocation which works!
juju scp -- -C 0:/var/log/syslog .
to match your example it would be
juju scp -e local -- -C 0:/etc/hosts /tmp
The help text is really not helpful here though so suggest this bug becomes a task to update it