Skip to content

Commit

Permalink
fix conflict after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiyuanzzz committed Jan 23, 2025
1 parent 292e885 commit 84b24b0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent/app/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ func (agent *ecsAgent) registerContainerInstance(
})
return terminalError{err}
}
if utils.IsAWSErrorCodeEqual(err, ecsmodel.ErrCodeClientException) {
if utils.IsAWSErrorCodeEqual(err, apierrors.ErrCodeClientException) {
logger.Critical("Instance registration attempt with client performing invalid action", logger.Fields{
field.Error: err,
})
Expand Down Expand Up @@ -916,13 +916,13 @@ func (agent *ecsAgent) reregisterContainerInstance(client ecs.ECSClient, capabil
seelog.Criticalf(instanceTypeMismatchErrorFormat, err)
return terminalError{err}
}
if utils.IsAWSErrorCodeEqual(err, ecsmodel.ErrCodeInvalidParameterException) {
if utils.IsAWSErrorCodeEqual(err, apierrors.ErrCodeInvalidParameterException) {
logger.Critical("Instance re-registration attempt with an invalid parameter", logger.Fields{
field.Error: err,
})
return terminalError{err}
}
if utils.IsAWSErrorCodeEqual(err, ecsmodel.ErrCodeClientException) {
if utils.IsAWSErrorCodeEqual(err, apierrors.ErrCodeClientException) {
logger.Critical("Instance re-registration attempt with client performing invalid action", logger.Fields{
field.Error: err,
})
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ecs-agent/api/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const (
ErrCodeResourceNotFoundException = "ResourceNotFoundException"

ErrCodeRequestCanceled = "RequestCanceled"

ErrCodeClientException = "ClientException"
)

// IsInstanceTypeChangedError returns true if the error when
Expand Down
42 changes: 42 additions & 0 deletions scripts/amazon-ssm-agent.gpg
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,45 @@ n2uX/TP3LCyH/MsrNJrJOQnM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