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

[bootstrap] fix: Fixed required variable validation assertions #1077

Merged
merged 2 commits into from
Dec 8, 2023
Merged

[bootstrap] fix: Fixed required variable validation assertions #1077

merged 2 commits into from
Dec 8, 2023

Conversation

gregmulvaney
Copy link
Contributor

Turns out it was much simpler than I originally thought.

  • item in vars checks that the variable exists in the vars object
  • vars[item] != None checks that the variable is set

Empty variables are assigned as null by Ansible which Python then translates into None.

@github-actions github-actions bot added the area/bootstrap Changes made in the bootstrap directory label Dec 8, 2023
@onedr0p onedr0p merged commit 03f39e9 into onedr0p:main Dec 8, 2023
1 check passed
@onedr0p
Copy link
Owner

onedr0p commented Dec 8, 2023

That makes sense, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Changes made in the bootstrap directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants