Sitelet https://github.com/unioslo/zabbix-cli/pull/348
Skip to content

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

Open
JonasQuin42 wants to merge 2 commits into
unioslo:masterfrom
JonasQuin42:fix-unlink-template-clear
Open

JonasQuin42 wants to merge 2 commits into
unioslo:masterfrom
JonasQuin42:fix-unlink-template-clear

Conversation

@JonasQuin42

@JonasQuin42 JonasQuin42 commented Sep 21, 2026 •

Copy link
Copy Markdown

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.

This branch has not been deployed

No deployments
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.

1 participant