fix: quick fix. (#63)

This commit is contained in:
Bo-Yi Wu
2017-04-21 19:34:32 +08:00
committed by GitHub
parent 049263e847
commit 8dba1e8e32
+1 -1
View File
@@ -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")
}