Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiyuanzzz committed Jan 23, 2025
1 parent c146c51 commit 47db0c7
Showing 1 changed file with 3 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

0 comments on commit 47db0c7

Please sign in to comment.