We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 073aaa4 + fe20ac8 commit 179afebCopy full SHA for 179afeb
1 file changed
internal/controllers/securitygroup/actuator.go
@@ -334,7 +334,7 @@ orcRules:
334
if len(ruleCreateOpts) > 0 {
335
if _, createErr := actuator.osClient.CreateSecGroupRules(ctx, ruleCreateOpts); createErr != nil {
336
// We should require the spec to be updated before retrying a create which returned a conflict
337
- if orcerrors.IsRetryable(createErr) {
+ if !orcerrors.IsRetryable(createErr) {
338
createErr = orcerrors.Terminal(orcv1alpha1.ConditionReasonInvalidConfiguration, "invalid configuration creating resource: "+createErr.Error(), createErr)
339
} else {
340
createErr = fmt.Errorf("creating security group rules: %w", createErr)
0 commit comments