~rogpeppe/juju-core/492-sshinit-log-stdout

« back to all changes in this revision

Viewing changes to cloudinit/sshinit/configure.go

  • Committer: Roger Peppe
  • Date: 2014-01-27 10:34:36 UTC
  • Revision ID: roger.peppe@canonical.com-20140127103436-jbdngqi3ygq3ho8h
cloudinit/sshinit: log stdout

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        }
56
56
        cmd := ssh.Command(params.Host, []string{"sudo", "/bin/bash"}, nil)
57
57
        cmd.Stdin = strings.NewReader(script)
 
58
        cmd.Stdout = params.ProgressWriter
58
59
        cmd.Stderr = params.ProgressWriter
59
60
        return cmd.Run()
60
61
}