Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error detection case when image that is being deleted does not exist #1897

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Fix error detection case when image that is being deleted does not exist #1897

merged 1 commit into from
Feb 28, 2019

Conversation

shubham2892
Copy link
Contributor

Summary

Fixes #1871

When the agent tries to remove an image that does not exist on the instance, the error message received back by the agent is no such image: <image name>.

Agent tries to match the error message with no such image instead of no such image: <image name>. As a result, agent is not able to correctly detect that the error thrown back is because the image does not exist.

Implementation details

Testing

Test TestDeleteImageNotFoundError modified to mock correct error message and fails without this change in place.

New tests cover the changes: yes

Description for the changelog

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@shubham2892 shubham2892 modified the milestones: 1.27.0, 1.26.0 Feb 28, 2019
@shubham2892
Copy link
Contributor Author

shubham2892 commented Feb 28, 2019

ARM tests are failing because of nginxinc/docker-nginx#313

@shubham2892 shubham2892 merged commit 243ddda into aws:dev Feb 28, 2019
This was referenced Feb 28, 2019
@shubham2892 shubham2892 deleted the fix_docker_image_cleanup_error branch April 3, 2019 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants