Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

If there is a comma in the host group name, two groups are created #1375

Open
djdejawu opened this issue Aug 21, 2024 · 0 comments
Open

If there is a comma in the host group name, two groups are created #1375

djdejawu opened this issue Aug 21, 2024 · 0 comments
Labels
bug Something isn't working module The issue or pull request is related to Zabbix module

Comments

@djdejawu
Copy link

djdejawu commented Aug 21, 2024

SUMMARY

There is a comma in my host group name. When using community.zabbix.zabbix_group: not one group is created, but two. Example:

Dataline 1,16 = Dataline 1 + 16 (two groups)
ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.zabbix.zabbix_group

community.zabbix                         3.1.1
ANSIBLE VERSION
ansible [core 2.17.2]
  config file = /home/dejawu/venv/ansible.cfg
  configured module search path = ['/home/dejawu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/dejawu/venv/lib64/python3.12/site-packages/ansible
  ansible collection location = /home/dejawu/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/dejawu/venv/bin/ansible
  python version = 3.12.4 (main, Jun  7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.1-1)] (/home/dejawu/venv/bin/python3)
  jinja version = 3.1.4
  libyaml = True
CONFIGURATION
CONFIG_FILE() = /home/dejawu/venv/ansible.cfg
EDITOR(env: EDITOR) = /usr/bin/nano
HOST_KEY_CHECKING(/home/dejawu/venv/ansible.cfg) = False
OS / ENVIRONMENT / Zabbix Version

OS: Fedora 39
Zabbix: 6.0.33 (Docker)

STEPS TO REPRODUCE
---
tasks:
  - name: Add host group
    community.zabbix.zabbix_group:
      host_groups:
        - DataLine 1,2
        - DataLine 1,3
        - DataLine 1,5
        - etc
EXPECTED RESULTS

One group with comma in name

ACTUAL RESULTS

Two groups delimited by comma

@pyrodie18 pyrodie18 added bug Something isn't working module The issue or pull request is related to Zabbix module labels Aug 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working module The issue or pull request is related to Zabbix module
Projects
None yet
Development

No branches or pull requests

2 participants