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

add a possibility to specify empty dicts in ConfigParser #100

Closed
FoSix opened this issue Jul 28, 2023 · 0 comments · Fixed by #101
Closed

add a possibility to specify empty dicts in ConfigParser #100

FoSix opened this issue Jul 28, 2023 · 0 comments · Fixed by #101
Assignees
Labels
codebase Code related issues enhancement New feature or request

Comments

@FoSix
Copy link
Contributor

FoSix commented Jul 28, 2023

This is a simplification for use with Ansible. Sometimes to parametrise a check it would be easier to specify something like:

a_check:
  a_config: '{{ some_config_param |default(omit) }}'

which would translate to

a_check:

if the some_config_param is not defined. Unfortunately this is not supported. It's either a string (a_check) or a dict with a value (a_check: a_value)

@FoSix FoSix added enhancement New feature or request codebase Code related issues labels Jul 28, 2023
@FoSix FoSix self-assigned this Jul 28, 2023
@FoSix FoSix linked a pull request Jul 28, 2023 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codebase Code related issues enhancement New feature or request
Projects
None yet
1 participant