File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,15 @@ import (
25
25
)
26
26
27
27
const (
28
- launchTemplateNotFoundCode = "InvalidLaunchTemplateName.NotFoundException"
28
+ launchTemplateNameNotFoundCode = "InvalidLaunchTemplateName.NotFoundException"
29
29
)
30
30
31
31
var (
32
32
// This is not an exhaustive list, add to it as needed
33
33
notFoundErrorCodes = sets .New [string ](
34
34
"InvalidInstanceID.NotFound" ,
35
- launchTemplateNotFoundCode ,
35
+ launchTemplateNameNotFoundCode ,
36
+ "InvalidLaunchTemplateId.NotFound" ,
36
37
sqs .ErrCodeQueueDoesNotExist ,
37
38
iam .ErrCodeNoSuchEntityException ,
38
39
)
@@ -102,7 +103,7 @@ func IsLaunchTemplateNotFound(err error) bool {
102
103
}
103
104
var awsError awserr.Error
104
105
if errors .As (err , & awsError ) {
105
- return awsError .Code () == launchTemplateNotFoundCode
106
+ return awsError .Code () == launchTemplateNameNotFoundCode
106
107
}
107
108
return false
108
109
}
You can’t perform that action at this time.
0 commit comments