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]: Failed to establish connection to NetBox API #1240

Closed
xibriz opened this issue May 23, 2024 · 1 comment
Closed

[Bug]: Failed to establish connection to NetBox API #1240

xibriz opened this issue May 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xibriz
Copy link

xibriz commented May 23, 2024

Ansible NetBox Collection version

v3.18.0

Ansible version

ansible [core 2.16.6]
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.1.3
  libyaml = True

NetBox version

v4.0.2

Python version

3.10

Steps to Reproduce

The following task works fine in Netbox v3.7.2 but not in v4.0.2:

- name: Create site
  netbox.netbox.netbox_site:
    netbox_url: URL
    netbox_token: TOKEN
    data:
      name: Test
      slug: test
    state: present

Expected Behavior

TASK [Create site] ***********************************************************************************************************************************************************************************
ok: [localhost]

Observed Behavior

TASK [Create site] ***********************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to establish connection to NetBox API"}

@xibriz xibriz added the bug Something isn't working label May 23, 2024
@xibriz
Copy link
Author

xibriz commented May 23, 2024

Related to netbox-community/pynetbox#612

@xibriz xibriz closed this as completed May 23, 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