~fwereade/pyjuju/preflight-constraints

« back to all changes in this revision

Viewing changes to juju/control/scp.py

  • Committer: William Reade
  • Date: 2012-04-04 15:39:01 UTC
  • mfrom: (494.1.18 trunk)
  • Revision ID: fwereade@gmail.com-20120404153901-aewisetre0zwgcus
finished tests, removed inappropriate preflighting

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
@inlineCallbacks
74
74
def command(options):
75
75
    """Use scp to copy files to/from given unit or machine.
76
 
 
77
 
    Unlike juju ssh, no attempt to verify liveness of the agent,
78
 
    instead it's just a matter of whether the underlying scp will work
79
 
    or not.
80
76
    """
 
77
    # Unlike juju ssh, no attempt to verify liveness of the agent,
 
78
    # instead it's just a matter of whether the underlying scp will work
 
79
    # or not.
81
80
    environment = get_environment(options)
82
81
    provider = environment.get_machine_provider()
83
82
    client = yield provider.connect()