Skip to content

Commit

Permalink
Remove useless code in SubmitTaskStateChange
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng Yin committed Nov 15, 2017
1 parent b51f15c commit 5752a5e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions agent/api/ecsclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,6 @@ func (client *APIECSClient) SubmitTaskStateChange(change api.TaskStateChange) er
return nil
}

if change.Status != api.TaskRunning && change.Status != api.TaskStopped && len(change.Containers) == 0 {
seelog.Debugf("Not submitting unsupported upstream task state: %s", change.Status.String())
// Not really an error
return nil
}

status := change.Status.BackendStatus()

req := ecs.SubmitTaskStateChangeInput{
Expand Down

0 comments on commit 5752a5e

Please sign in to comment.