Skip to content

Commit

Permalink
Increase wait between getPassword calls
Browse files Browse the repository at this point in the history
This will prevent to flood the server
  • Loading branch information
outscale-mdr authored and outscale-hmi committed Mar 31, 2023
1 parent 5a8680b commit 8720d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/osc/common/step_get_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (s *StepGetPassword) waitForPassword(state multistep.StateBag, cancel <-cha
case <-cancel:
log.Println("[INFO] Retrieve password wait cancelled. Exiting loop.")
return "", errors.New("Retrieve password wait cancelled")
case <-time.After(5 * time.Second):
case <-time.After(15 * time.Second):
}

resp, _, err := oscconn.Api.VmApi.ReadAdminPassword(oscconn.Auth).ReadAdminPasswordRequest(oscgo.ReadAdminPasswordRequest{VmId: vm.GetVmId()}).Execute()
Expand Down

0 comments on commit 8720d5c

Please sign in to comment.