Add sudo check to prepare subcommand

This commit is contained in:
Kota Kanbe
2016-09-14 08:52:54 +09:00
parent 00c0354a8e
commit 8a8ac5fd22
2 changed files with 7 additions and 1 deletions

View File

@@ -369,7 +369,7 @@ func detectContainerOSesOnServer(containerHost osTypeInterface) (oses []osTypeIn
// CheckIfSudoNoPasswd checks whether vuls can sudo with nopassword via SSH
func CheckIfSudoNoPasswd(localLogger *logrus.Entry) error {
timeoutSec := 1 * 15
timeoutSec := 15
errs := parallelSSHExec(func(o osTypeInterface) error {
return o.checkIfSudoNoPasswd()
}, timeoutSec)