Skip to content

Conversation

@dnephin
Copy link

@dnephin dnephin commented Aug 27, 2015

Resolves #1804

When a label or environment variable is specified in the config self.options was being mutated, which causes the config hash to change during scale(), so each container would have a different config_hash even if they all had the same config.

This really makes me wish python had an immutable dict. Debugging and testing this took way longer than it would have with immutable types.

Fix mutation of service.options when a label or environment variable is specified in the config.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
@dnephin dnephin mentioned this pull request Aug 31, 2015
@aanand aanand merged commit d264c2e into docker:master Aug 31, 2015
@dnephin dnephin deleted the fix_scale_with_config_hash branch August 31, 2015 20:53
@dnephin dnephin added this to the 1.4.1 milestone Sep 10, 2015
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.

3 participants