Comments (2)
I pushed a commit that seems to solve this issue.
Unfortunately I also pushed another commit that contains a password + token fallback workaround (a little quality of life improvement).
I can revert my branch back to its "fix-only" state if such PR is unacceptable (given that two commits are being merged).
from netbox-proxbox.
I have got the same issue
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/__init__.py", line 40, in <module>
from . import proxbox_api
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/__init__.py", line 1, in <module>
from . import (
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/update.py", line 2, in <module>
from .plugins_config import (
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/plugins_config.py", line 73, in <module>
PROXMOX = PROXMOX_SETTING.get("domain", DEFAULT_PROXMOX)
AttributeError: 'list' object has no attribute 'get'
After removing the lists from inside the proxmox dictionary I've run into another error
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 56, in inner
response = get_response(request)
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 103, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 142, in dispatch
return handler(request, *args, **kwargs)
File "/opt/netbox-3.5.8/venv/lib/python3.10/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.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/update.py", line 434, in all
node_updated = nodes(proxmox_json = px_node_each, proxmox_cluster = proxmox_cluster)
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/update.py", line 361, in nodes
netbox_node = create.dcim.node(proxmox_json)
File "/opt/netbox-3.5.8/venv/lib/python3.10/site-packages/netbox_proxbox/proxbox_api/create/dcim.py", line 145, in node
node_json["device_role"] = extras.role(role_id = NETBOX_NODE_ROLE_ID).id
AttributeError: 'str' object has no attribute 'id'
Will wait to see what is done here before opening a separate issue for my second error.
from netbox-proxbox.
Related Issues (20)
- ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) HOT 2
- Compatibility for Netbox 3.6.1 HOT 1
- multiple proxmox clusters - support setting site_id on each cluster config HOT 2
- Unable to add PVE nodes to Netbox HOT 2
- Refactor all backend to FastAPI framework
- CLOSED HOT 2
- dont show token value on proxbox plugin page HOT 1
- Support for Netbox 3.2.x
- Support version 3.7.1 HOT 2
- full update from netbox gives error HOT 2
- Full update does not work HOT 5
- How are you supposed to use this without SSL?
- migration error .. and SSL.. Of course. HOT 1
- Dynamic Proxmox configuration
- object has no attribute "slug"
- errors python3 manage.py migrate HOT 1
- pynetbox.core.query.RequestError - The specified disk size (53) must match the aggregate size of assigned virtual disks (55)
- Support for netbox 4.x HOT 6
- project still a live ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbox-proxbox.