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

docker_compose - Fix idempotency when services have no enabled profiles #192

Conversation

Ajpantuso
Copy link
Collaborator

SUMMARY

Adds a check before applying idempotency logic to services which have profiles defined, but none of which are enabled.

Fixes #191

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/modules/docker_compose.py

ADDITIONAL INFORMATION
  • Uses the docker_compose library to perform the check.

@Ajpantuso Ajpantuso changed the title [WIP] docker_compose - Fix idempotency when services have no enabled profiles docker_compose - Fix idempotency when services have no enabled profiles Aug 20, 2021
@Ajpantuso Ajpantuso marked this pull request as ready for review August 20, 2021 00:09
Copy link

@hummeltech hummeltech left a comment

Choose a reason for hiding this comment

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

Great job!

Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Cannot say much about about docker-compose, but the change looks good to me.

@felixfontein felixfontein merged commit 4dfc3ae into ansible-collections:main Aug 20, 2021
@felixfontein
Copy link
Collaborator

@Ajpantuso thanks for fixing this!
@hummeltech thanks for reporting and testing this!

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.

docker_compose: changed always true when profiles are present
3 participants