Skip to content

Commit

Permalink
It is really not possible to get a sane dry-activate output without b…
Browse files Browse the repository at this point in the history
…eing root
  • Loading branch information
Johan Thomsen authored and adamtulinius committed Oct 21, 2019
1 parent 2dfcc09 commit 83bf6d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,7 @@ func (ctx *SSHContext) ActivateConfiguration(host Host, configuration string, ac
cmd *exec.Cmd
err error
)
if action == "dry-activate" {
cmd, err = ctx.Cmd(host, args...)
} else {
cmd, err = ctx.SudoCmd(host, args...)
}
cmd, err = ctx.SudoCmd(host, args...)
if err != nil {
return err
}
Expand Down

0 comments on commit 83bf6d4

Please sign in to comment.