-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Ansible NetBox Collection version
v3.20.0
Ansible version
ansible [core 2.15.4]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.16 (main, May 31 2023, 12:21:58) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = TrueNetBox version
v4.0.11
Python version
3.9
Steps to Reproduce
Create a tag with the netbox_tag module and define a name and a slug for this new tag.
When the slug contains two dashes (--) the netbox modules creates the tag with a slug, that only one dash (-) contains.
Example:
Module:
netbox.netbox.netbox_tag:
data:
name: "customer123"
slug: "customer--123"
Result in Netbox:
slug "customer-123"
Expected Behavior
Creation of the tag as defined in the module.
Observed Behavior
One dash is removed during the creation of the Tag
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working