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 #1854

Merged

Conversation

bcreane
Copy link
Contributor

@bcreane bcreane commented May 16, 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

cherry-pick: 29bcb35

#1853

Todos

  • Tests
  • Documentation
  • Release note

Release Note

Fix invalid filter in "calicoctl node diags" command

@bcreane bcreane requested a review from caseydavenport May 16, 2018 00:26
@caseydavenport caseydavenport added this to the Calico v3.1.2 milestone May 17, 2018
@caseydavenport caseydavenport merged commit 73ad8cb into projectcalico:release-v3.1 May 17, 2018
@bcreane bcreane deleted the fix-docker-filter-v3.1 branch May 17, 2018 15:49
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