Skip to content

Commit 73f41e6

Browse files
committed
Adding handling for ConditionTypeRecoverable
1 parent 9cecf61 commit 73f41e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/pkg/resource/sdk.go.tpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ func (rm *resourceManager) updateConditions (
168168
for _, condition := range ko.Status.Conditions {
169169
if condition.Type == ackv1alpha1.ConditionTypeTerminal {
170170
terminalCondition = condition
171-
break
172171
}
173-
// Continue to check if Terminal Condition exists
174172
if condition.Type == ackv1alpha1.ConditionTypeRecoverable {
175173
recoverableCondition = condition
176174
}
@@ -204,7 +202,7 @@ func (rm *resourceManager) updateConditions (
204202
}
205203
recoverableCondition.Status = corev1.ConditionTrue
206204
awsErr, _ := ackerr.AWSError(err)
207-
errorMessage := "Unknown Error"
205+
errorMessage := err.Error()
208206
if awsErr != nil {
209207
errorMessage = awsErr.Message()
210208
}

0 commit comments

Comments
 (0)