-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feature contacts groups #168
Feature contacts groups #168
Conversation
Since rest API is almost identical, in essence sed 's/host\([ _g]\)/contact\1/g' host_group.py > contact_group.py
sed -i 's/Host/Contact/g' contact_group.py similarly test suite |
Hi @msekania and thanks for the continuous contributions! |
Hi @robin-tribe29, somehow this close similarity of contact and host groups does not give me a rest. https://github.com/msekania/ansible-collection-tribe29.checkmk/tree/feature-groups In current version, there is a group_type field which takes one of ["contact", "host", "service"] values, and the rest is provided either by group_name (instead of host_group_name, contact_group_name) and title or list of dict-s named 'groups' (instead of host_group, contact_group) with name and title entries. Alternatively, I can rewrite the module so that group_type field is removed and choice is made by providing:
Should I make an another pull request? Best, |
Hi @msekania, we are already discussing this internally, but have not reached a definite conclusion. We lean towards dedicated modules but shared code base. But that is quite its own topic. How do you feel about merging this feature for now, as it is ready. I created a dedicated issue, where we can discuss the matter in depth. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have successfully tested the code!
Additional plugin that manages contact groups. In essence host_group.py with 'host' exchanges with 'contact'.
Rest API of both host and contact groups are "almost" identical.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number:
e.g. #1
What is the new behavior?
Other information