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

icinga2_host: fix a key error when modifying an existing host #6748

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

yoannlr
Copy link
Contributor

@yoannlr yoannlr commented Jun 20, 2023

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
  • Bugfix Pull Request
COMPONENT NAME

icinga2_host module

ADDITIONAL INFORMATION

@ansibullbot
Copy link
Collaborator

@yoannlr this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug merge_commit This PR contains at least one merge commit. Please resolve! module module needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Jun 20, 2023
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added plugins plugin (any type) and removed merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Jun 20, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 labels Jun 20, 2023
@felixfontein felixfontein merged commit 806f6da into ansible-collections:main Jun 20, 2023
@patchback
Copy link

patchback bot commented Jun 20, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/806f6da16bd35cf4600a518a79f4b759299968d5/pr-6748

Backported as #6752

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jun 20, 2023
patchback bot pushed a commit that referenced this pull request Jun 20, 2023
* 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)
@felixfontein
Copy link
Collaborator

@yoannlr thanks for fixing this!

@patchback
Copy link

patchback bot commented Jun 20, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/806f6da16bd35cf4600a518a79f4b759299968d5/pr-6748

Backported as #6753

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 20, 2023
* 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)
felixfontein pushed a commit that referenced this pull request Jun 20, 2023
…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]>
felixfontein pushed a commit that referenced this pull request Jun 20, 2023
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants