Skip to content
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

[Bug]: netbox_device fails to find site with uppercase slug #1294

Open
wfaulk-bw opened this issue Jul 31, 2024 · 0 comments
Open

[Bug]: netbox_device fails to find site with uppercase slug #1294

wfaulk-bw opened this issue Jul 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wfaulk-bw
Copy link

Ansible NetBox Collection version

v3.19.1

Ansible version

ansible [core 2.16.3]
  config file = None
  configured module search path = ['/Users/wfaulk/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/wfaulk/ansible/systems_flexpod_automation.venv/lib/python3.11/site-packages/ansible
  ansible collection location = /Users/wfaulk/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/wfaulk/ansible/systems_flexpod_automation.venv/bin/ansible
  python version = 3.11.9 (main, Apr  2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.1.0.2.5)] (/Users/wfaulk/ansible/systems_flexpod_automation.venv/bin/python3.11)
  jinja version = 3.1.3
  libyaml = True

NetBox version

v3.6.9

Python version

3.11

Steps to Reproduce

Create site with slug "ATL1".

Try to create a device using the netbox_device module and reference that site:

    - netbox.netbox.netbox_device:
        data:
          name: "devicename"
          device_role: 1
          site: "ATL1"
        state: present

Expected Behavior

changed: [devicename ...

Observed Behavior

fatal: [devicename]: FAILED! => {"changed": false, "msg": "Could not resolve id of site: atl1"}

It appears that somewhere in the module that it's changing the provided value of "ATL1" to "atl1" and then failing to find the site, despite providing the exact name.

@wfaulk-bw wfaulk-bw added the bug Something isn't working label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant