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

feat: use global var and remove group facts #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jiayuchen888
Copy link
Contributor

No description provided.

@jiayuchen888 jiayuchen888 requested a review from dabelenda July 18, 2024 14:32
when: g_test_lifecycleenvironment_defined and g_prod_lifecycleenvironment_defined
target_lce_name: "{{ prod_lifecycleenvironment }}"
source_lce_name: "{{ test_lifecycleenvironment }}"
when: test_lifecycleenvironment_defined and prod_lifecycleenvironment_defined
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should directly use the "variable is defined" statement instead of using the facts.
This indirection makes things a bit harder to understand and the amount of text it adds here is not excessive.

This would mean removing completely these facts and the file that creates these facts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I updated the PR.

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.

2 participants