Skip to content

Fix unlink_template_from_host --no-clear clearing templates - #348

Merged
pederhan merged 3 commits into
unioslo:masterfrom
JonasQuin42:fix-unlink-template-clear
Oct 22, 2026
Merged

pederhan merged 3 commits into
unioslo:masterfrom
JonasQuin42:fix-unlink-template-clear

Conversation

@JonasQuin42

@JonasQuin42 JonasQuin42 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

unlink_template_from_host --no-clear was still clearing items and triggers on the hosts. The command never passes clear down to unlink_templates_from_hosts, so it always ran with the default (clear=True).

Added a test that checks what actually gets sent to host.massremove for each flag combo, plus a changelog line.

@JonasQuin42

Copy link
Copy Markdown
Contributor Author

Friendly bump on this one. CI never got approved so the runs timed out after 30 days, not an actual failure. Happy to rebase if that's easier for you. We hit this when trying to swap templates on a host without wiping its items, --no-clear just gets ignored right now.

@pederhan
pederhan self-requested a review October 22, 2026 13:26

@pederhan pederhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thank you for your contribution! Sorry for the delay, I need to get better at monitoring incoming PRs.

@pederhan
pederhan merged commit 4409c04 into unioslo:master Oct 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants