Juju SCP help text is unclear on how to pass additional arguments

Bug #1387640 reported by Chris Glass
16
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.

Ian Booth (wallyworld)
Changed in juju-core:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Adam Collard (adam-collard) wrote :

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

Ian Booth (wallyworld)
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
Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 1.21
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
Ian Booth (wallyworld)
Changed in juju-core:
milestone: 1.21 → 1.21-alpha3
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
tags: added: regression
Changed in juju-core:
importance: Medium → High
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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