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

Save of cable tags not working #502

Open
powerscooter opened this issue Oct 14, 2022 · 1 comment
Open

Save of cable tags not working #502

powerscooter opened this issue Oct 14, 2022 · 1 comment
Labels
status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@powerscooter
Copy link

Hey everybody.
I installed the newest version of netbox. (version: 3.3.5)
Now i have the problem, that i can not save new tags via pynetbox.

I tried this:
`>>> nb_cable.tags = [11]

nb_cable.tags
[11]
nb_cable.save()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/pynetbox/core/response.py", line 529, in save
updates = self.updates()
File "/usr/local/lib/python3.8/dist-packages/pynetbox/core/response.py", line 506, in updates
diff = self._diff()
File "/usr/local/lib/python3.8/dist-packages/pynetbox/core/response.py", line 482, in _diff
current = Hashabledict({fmt_dict(k, v) for k, v in self.serialize().items()})
File "/usr/local/lib/python3.8/dist-packages/pynetbox/core/response.py", line 463, in serialize
current_val = [
File "/usr/local/lib/python3.8/dist-packages/pynetbox/core/response.py", line 464, in
v.id if isinstance(v, Record) else v for v in current_val
File "/usr/local/lib/python3.8/dist-packages/pynetbox/core/response.py", line 298, in getattr
raise AttributeError('object has no attribute "{}"'.format(k))
AttributeError: object has no attribute "id"`

Do i did something wrong? It was working by this way in netbox-version 3.2.9.

Thanks

@arthanson arthanson added the type: bug A confirmed report of unexpected behavior in the application label Oct 14, 2022
@egreenspan2
Copy link

I think these are related #491

@abhi1693 abhi1693 added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

4 participants