8000 Zabbix actions discovery checks with condtions by me-nilix · Pull Request #1473 · ansible-collections/community.zabbix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Zabbix actions discovery checks with condtions #1473

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

Merged
merged 6 commits into from
Mar 3, 2025

Conversation

me-nilix
Copy link
Contributor
SUMMARY

Fixes #1409
Creating discovery action with conditions.type=discovery_check and dchecks.type=Zabbix throw error.
One discovery rule can have many checks with same type - "Zabbix agent", but with different keys.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

zabbix_action module

ADDITIONAL INFORMATION

Анисимов Николай Георгиевич and others added 2 commits February 24, 2025 18:06
Copy link
codecov bot commented Feb 25, 2025

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.05%. Comparing base (fa753cf) to head (6212268).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
plugins/modules/zabbix_action.py 88.88% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1473      +/-   ##
==========================================
+ Coverage   78.99%   79.05%   +0.05%     
==========================================
  Files          47       47              
  Lines        5946     5958      +12     
  Branches     1535     1539       +4     
==========================================
+ Hits         4697     4710      +13     
+ Misses        769      768       -1     
  Partials      480      480              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Fix after sanity test
Found 1 pep8 issue(s) which need to be resolved:
ERROR: plugins/modules/zabbix_action.py:812:1: E302: expected 2 blank lines, found 1
@@ -0,0 +1,2 @@
minor_changes:
- zabbix_action module add discovery check condition in discovery rule.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please make it a bit more verbose. Currently discovery rules already have discovery check condition.

Co-authored-by: Evgeny Yurchenko <ey@bgmot.com>
@BGmot BGmot merged commit bd86d7d into ansible-collections:main Mar 3, 2025
68 checks passed
@BGmot
Copy link
Collaborator
BGmot commented Mar 3, 2025

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants
0