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

IcingaDB: handle null (Empty) for value/set_if/separator in command arguments #9398

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

julianbrost
Copy link
Contributor

backport of #9371

…rguments

Icinga 2 treats null (Empty) as if the corresponding attribute is not
specified. However, without this commit, it would serialize the value as "null"
(i.e. type string), so that it ends up in the database as this string instead
of NULL. This commit adds handling for ValueEmpty so that is serialized as JSON
null value and ends up in the database as NULL.
@cla-bot cla-bot bot added the cla/signed label Jun 14, 2022
@icinga-probot icinga-probot bot added this to the 2.13.4 milestone Jun 14, 2022
@icinga-probot icinga-probot bot added the area/icingadb New backend label Jun 14, 2022
@Al2Klimov Al2Klimov merged commit 9eaa9c9 into support/2.13 Jun 23, 2022
@icinga-probot icinga-probot bot deleted the bugfix/icingadb-command-arguments-null-2.13 branch June 23, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants