~ubuntu-branches/ubuntu/trusty/juju-core/trusty-proposed

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/cmd/juju/ssh.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-29 11:40:20 UTC
  • mfrom: (23.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140129114020-ejieitm8smtt5vln
Tags: 1.17.1-0ubuntu2
d/tests/local-provider: Don't fail tests if ~/.juju is present as its
created by the juju version command. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
                // it from the CLI for backwards compatibility.
89
89
                args = args[1:]
90
90
        }
91
 
        cmd := ssh.Command("ubuntu@"+host, args, ssh.NoPasswordAuthentication, ssh.AllocateTTY)
 
91
        var options ssh.Options
 
92
        options.EnablePTY()
 
93
        cmd := ssh.Command("ubuntu@"+host, args, &options)
92
94
        cmd.Stdin = ctx.Stdin
93
95
        cmd.Stdout = ctx.Stdout
94
96
        cmd.Stderr = ctx.Stderr