chore: fix lint issues on osc builder

pull/10056/head
Marin Salinas 6 years ago
parent c5dffc1bff
commit 56807553fc

@ -67,7 +67,7 @@ func WaitUntilOscSnapshotDone(conn *osc.APIClient, snapshotID string) error {
return <-errCh
}
func waitForState(errCh chan<- error, target string, refresh stateRefreshFunc) error {
func waitForState(errCh chan<- error, target string, refresh stateRefreshFunc) {
err := common.Retry(2, 2, 0, func(_ uint) (bool, error) {
state, err := refresh()
if err != nil {
@ -78,7 +78,7 @@ func waitForState(errCh chan<- error, target string, refresh stateRefreshFunc) e
return false, nil
})
errCh <- err
return err
return
}
func waitUntilOscVmStateFunc(conn *osc.APIClient, id string) stateRefreshFunc {

@ -127,7 +127,7 @@ func (s *StepGetPassword) waitForPassword(state multistep.StateBag, cancel <-cha
if resp.AdminPassword != "" {
decryptedPassword, err := decryptPasswordDataWithPrivateKey(
resp.AdminPassword, []byte(privateKey))
resp.AdminPassword, privateKey)
if err != nil {
err := fmt.Errorf("Error decrypting auto-generated vm password: %s", err)
return "", err

Loading…
Cancel
Save