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

object has no attribute "slug" #173

Closed
gfvh opened this issue May 3, 2024 · 1 comment
Closed

object has no attribute "slug" #173

gfvh opened this issue May 3, 2024 · 1 comment
Assignees
Labels
accepted This issue has been accepted for implementation bug Further discussion is needed to determine this issue's scope and/or implementation duplicate This issue or pull request already exists

Comments

@gfvh
Copy link

gfvh commented May 3, 2024

Performing proxmox full update happens this:

<class 'AttributeError'>

object has no attribute "slug"

Python version: 3.11.2
NetBox version: 3.7.1
Plugins:
netbox_attachments: 4.0.2
netbox_ipcalculator: 1.1
netbox_proxbox: 0.0.5
netbox_qrcode: 0.0.11
netbox_topology_views: 3.9.0

here is cat from log of exact moment

log file:

netbox_proxmox.log

cat /var/log/netbox.log

Internal Server Error: /plugins/proxbox/full_update/
Traceback (most recent call last):
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch
return super().dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/netbox_proxbox/views.py", line 93, in get
"virtualmachines_table": VMUpdateResult(proxbox_api.update.all(remove_unused = True)["virtualmachines"]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/netbox_proxbox/proxbox_api/update.py", line 420, in all
cluster = create.virtualization.cluster()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/netbox_proxbox/proxbox_api/create/virtualization.py", line 68, in cluster
type = cluster_type().slug
^^^^^^^^^^^^^^^^^^^
File "/opt/netbox-3.7.1/venv/lib/python3.11/site-packages/pynetbox/core/response.py", line 308, in getattr
raise AttributeError('object has no attribute "{}"'.format(k))
AttributeError: object has no attribute "slug"

@emersonfelipesp emersonfelipesp self-assigned this Oct 24, 2024
@emersonfelipesp emersonfelipesp added bug Further discussion is needed to determine this issue's scope and/or implementation accepted This issue has been accepted for implementation duplicate This issue or pull request already exists labels Oct 24, 2024
@emersonfelipesp
Copy link
Member

#176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue has been accepted for implementation bug Further discussion is needed to determine this issue's scope and/or implementation duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants