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 up docker filter for name=calico #1853

Merged
merged 1 commit into from
May 16, 2018

Conversation

bcreane
Copy link
Contributor

@bcreane bcreane commented May 15, 2018

Description

exec.Command() doesn't correctly handle escaped quotes. Consequently the docker ps -a --filter "name=calico" command fails and we're not correctly listing relevant pods to examine for the diag. The fix is to remove the escaped quotes from the invocation.

See https://stackoverflow.com/questions/26473674/double-quotes-escaping-in-golang-exec

Addresses issue: https://github.com/projectcalico/calicoctl/issues/1852

Todos

  • Tests
  • Documentation
  • Release note

Release Note

None required

Copy link
Member

@caseydavenport caseydavenport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - care to cherry-pick to release-v3.0 and release-v3.1?

@bcreane bcreane merged commit 1c801f2 into projectcalico:master May 16, 2018
@bcreane bcreane deleted the bcreane-fix-docker-filter branch May 16, 2018 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants