-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
icinga2_host: fix a key error when modifying an existing host #6748
Conversation
@yoannlr this PR contains the following merge commits: Please rebase your branch to remove these commits. |
…ars.yml Co-authored-by: Felix Fontein <[email protected]>
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6752 🤖 @patchback |
* Initialize `template` variable. Add changelog fragment. * Update changelogs/fragments/6286-icinga2_host-template-and-template-vars.yml Co-authored-by: Felix Fontein <[email protected]> * icinga2_host: fix a key error when updating a host * Changelog fragment. * Update changelog fragment with correct PR number. --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 806f6da)
@yoannlr thanks for fixing this! |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6753 🤖 @patchback |
* Initialize `template` variable. Add changelog fragment. * Update changelogs/fragments/6286-icinga2_host-template-and-template-vars.yml Co-authored-by: Felix Fontein <[email protected]> * icinga2_host: fix a key error when updating a host * Changelog fragment. * Update changelog fragment with correct PR number. --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 806f6da)
…when modifying an existing host (#6752) icinga2_host: fix a key error when modifying an existing host (#6748) * Initialize `template` variable. Add changelog fragment. * Update changelogs/fragments/6286-icinga2_host-template-and-template-vars.yml Co-authored-by: Felix Fontein <[email protected]> * icinga2_host: fix a key error when updating a host * Changelog fragment. * Update changelog fragment with correct PR number. --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 806f6da) Co-authored-by: yoannlr <[email protected]>
…when modifying an existing host (#6753) icinga2_host: fix a key error when modifying an existing host (#6748) * Initialize `template` variable. Add changelog fragment. * Update changelogs/fragments/6286-icinga2_host-template-and-template-vars.yml Co-authored-by: Felix Fontein <[email protected]> * icinga2_host: fix a key error when updating a host * Changelog fragment. * Update changelog fragment with correct PR number. --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 806f6da) Co-authored-by: yoannlr <[email protected]>
SUMMARY
In my previous PR #6286, I forgot to change a line responsible for updating an existing Icinga host object with the correct data structure. This results in an error if the host we try to add/update using the
icinga2_host
module already exists in Icinga.ISSUE TYPE
COMPONENT NAME
icinga2_host module
ADDITIONAL INFORMATION