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

[dockerng] Fix dockerng.network_present when container is given by name #31713

Merged

Conversation

ticosax
Copy link
Contributor

@ticosax ticosax commented Mar 7, 2016

What does this PR do?

dockerng.network_present check if given list of containers are already bound to a network. And dockerng.network_present expect containers to be given by ID, so we swap all names with their IDs, before performing comparison.

What issues does this PR fix or reference?

none

Previous Behavior

The container was repeatedly attached to the network.

New Behavior

Act only on difference of configuration.

Tests written?

  • Yes
  • No

Because docker inspect network returns attached containers by their Ids.
cachedout pushed a commit that referenced this pull request Mar 7, 2016
…ner_id

[dockerng] Fix dockerng.network_present when container is given by name
@cachedout cachedout merged commit 604eb87 into saltstack:2015.8 Mar 7, 2016
@cachedout
Copy link
Contributor

Thanks, @ticosax

@ticosax ticosax deleted the fix-dockerng-networking-container_id branch March 7, 2016 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants