Skip to content

Commit

Permalink
compatibility with new runcmd interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Aug 25, 2016
1 parent 4e29b75 commit 593781a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,7 @@ func runRemoteExecutionNode(
logLock sync.Locker,
outputLock sync.Locker,
) (*remoteExecutionNode, error) {
remoteCommand, err := node.runner.Command(command)
if err != nil {
return nil, hierr.Errorf(
err,
`can't establish remote session`,
)
}
remoteCommand := node.runner.Command(command)

stdoutBackend := io.Writer(os.Stdout)
stderrBackend := io.Writer(os.Stderr)
Expand Down
5 changes: 1 addition & 4 deletions distributed_lock_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ func (node *distributedLockNode) lock(
node,
))

lockCommand, err := node.runner.Command(lockCommandString)
if err != nil {
return err
}
lockCommand := node.runner.Command(lockCommandString)

stdout, err := lockCommand.StdoutPipe()
if err != nil {
Expand Down

0 comments on commit 593781a

Please sign in to comment.