File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -457,13 +457,17 @@ func (rm *resourceManager) customUpdate(
457
457
if isAutoModeCluster (desired ) {
458
458
if err := rm .updateComputeConfig (ctx , desired ); err != nil {
459
459
awsErr , ok := extractAWSError (err )
460
+ var awsErrorCode string
461
+ if ok && awsErr != nil {
462
+ awsErrorCode = awsErr .Code
463
+ }
460
464
rlog .Info ("attempting to update AutoMode config" ,
461
465
"error" , err ,
462
466
"isAWSError" , ok ,
463
- "awsErrorCode" , awsErr . Code )
467
+ "awsErrorCode" , awsErrorCode )
464
468
465
469
// Check to see if we've raced an async update call and need to requeue
466
- if ok && awsErr .Code == "ResourceInUseException" {
470
+ if ok && awsErr != nil && awsErr .Code == "ResourceInUseException" {
467
471
rlog .Info ("resource in use, requeueing after async update" )
468
472
return nil , requeueAfterAsyncUpdate ()
469
473
}
You can’t perform that action at this time.
0 commit comments