Skip to content

Commit d1af8c1

Browse files
Include in use exception check for cluster logging (#29)
1 parent 7a37d5f commit d1af8c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/resource/cluster/hook.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ func (rm *resourceManager) customUpdate(
197197
if !ok || awserr.Message() != LoggingNoChangesError {
198198
return nil, err
199199
}
200+
201+
// Check to see if we've raced an async update call and need to
202+
// requeue
203+
if ok && awserr.Code() == "ResourceInUseException" {
204+
return nil, requeueAfterAsyncUpdate()
205+
}
200206
}
201207
return returnClusterUpdating(desired)
202208
}

0 commit comments

Comments
 (0)