fix(ansibleserver): force sleep 50s before running

This commit is contained in:
Zexi Li
2022-10-18 10:23:48 +08:00
parent 9c733ff130
commit f239e34d1b

View File

@@ -149,8 +149,8 @@ func (apb *SAnsiblePlaybookV2) runPlaybook(ctx context.Context, userCred mcclien
return fmt.Errorf("playbook is already running")
}
// hack: force Sleep 15s to wait some host ssh service started
time.Sleep(15 * time.Second)
// hack: force Sleep 50s to wait some host ssh service started
time.Sleep(50 * time.Second)
var (
privateKey string