netbox-community / pynetbox

Python API client library for Netbox.
Apache License 2.0
575 stars 170 forks source link

Not able to update comments #624

Closed vishnubraj closed 4 months ago

vishnubraj commented 4 months ago

pynetbox version

v7.3.3

NetBox version

v4.0.2

Python version

3.11

Steps to Reproduce

Please note I am using Python 3.12 version, as it is not there in the drop-down above I selected 3.11

I am trying to update comments on a device, but it is not accepting comments as an argument

  File "/Users/vishnu/drive/network-infra-ops/provision/scripts/netbox_update.py", line 74, in check_device_parameters
    self.nb.dcim.devices.update(x, comments=device['comments'])
TypeError: Endpoint.update() got an unexpected keyword argument 'comments'

Expected Behavior

it should be able to update the comments section of the device

Observed Behavior

giving error as TypeError: Endpoint.update() got an unexpected keyword argument 'comments'

vishnubraj commented 4 months ago

Please ignore this ticket. I was passing the argument in wrong way.