Skip to content

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
@LordHepipud LordHepipud force-pushed the fix/icinga_config_string_dsl branch from 28fad0a to a43d7aa Compare August 17, 2022 14:08
@cla-bot cla-bot bot added the cla/signed label Aug 17, 2022
@LordHepipud LordHepipud force-pushed the fix/icinga_config_string_dsl branch from a43d7aa to 9602db9 Compare August 17, 2022 14:58
@LordHepipud LordHepipud force-pushed the fix/icinga_config_string_dsl branch from 9602db9 to f126065 Compare August 17, 2022 15:00
@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.

2 participants