fix: quick fix. (#63)
This commit is contained in:
parent
049263e847
commit
8dba1e8e32
|
@ -161,7 +161,7 @@ func (p *Plugin) Exec() error {
|
|||
return errors.New("missing ssh config (Host, Username)")
|
||||
}
|
||||
|
||||
if len(p.Config.Password) != 0 || len(p.Config.Key) != 0 {
|
||||
if len(p.Config.Password) != 0 && len(p.Config.Key) != 0 {
|
||||
return errors.New("can't set password and key at the same time")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue