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

Fix: Adds DSL parser to string arguments to fix whitespace and $ escaping #473

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

LordHepipud
Copy link
Collaborator

Fixes an issue with current implementation, as string values containing whitespaces or $ are rendered wrong by default, if not set in single quotes ''

Example:

Using My Service

will output

My
Service

This issue is already fixed for arrays, but plain string values on arguments require this workaround.

As Icinga 2 will always set arguments if a DSL is specified, regardless if a value is present or not, we have to use a set_if expression for this, but can't as the Icinga Director baskets currently ignore set_if_format which requires to be an expression instead of a string.

Icinga/icingaweb2-module-director#2291

This PR is pending as long as the Director issue is not fixed and released within a release.

@LordHepipud LordHepipud added Bug There is an issue present Enhancement New feature or request labels Feb 9, 2022
@LordHepipud LordHepipud self-assigned this Feb 9, 2022
@LordHepipud LordHepipud changed the title Fix: Adds DSL parser to string arguments, fixing errors Fix: Adds DSL parser to string arguments Feb 9, 2022
@LordHepipud LordHepipud changed the title Fix: Adds DSL parser to string arguments Fix: Adds DSL parser to string arguments to fix whitespace and $ escaping Feb 9, 2022
@cla-bot cla-bot bot added the cla/signed label Aug 17, 2022
@LordHepipud LordHepipud added this to the v1.10.0 milestone Aug 17, 2022
@LordHepipud LordHepipud merged commit fd3ddd1 into master Aug 17, 2022
@LordHepipud LordHepipud deleted the fix/icinga_config_string_dsl branch August 17, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug There is an issue present cla/signed Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant