You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returntrue, s, fmt.Errorf("update failed for instance with id %s", instanceId)
68
+
default:
69
+
returnfalse, s, nil
80
70
}
81
71
})
82
72
handler.SetSleepBeforeWait(2*time.Second)
@@ -96,7 +86,8 @@ func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface
96
86
iferr==nil {
97
87
returnfalse, nil, nil
98
88
}
99
-
oapiErr, ok:=err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped
89
+
varoapiErr*oapierror.GenericOpenAPIError
90
+
ok:=errors.As(err, &oapiErr)
100
91
if!ok {
101
92
returnfalse, nil, fmt.Errorf("could not convert error to oapierror.GenericOpenAPIError")
0 commit comments