Netbox agent crash on server register #157

Closed
opened 2020-07-29 00:32:42 +02:00 by Solvik · 0 comments
Solvik commented 2020-07-29 00:32:42 +02:00 (Migrated from github.com)

As identified in #149, the agent crashed with the following output

File "/tmp/netbox/netbox_agent/cli.py", line 39, in run
   server.netbox_create_or_update(config)
 File "/tmp/netbox/netbox_agent/server.py", line 306, in netbox_create_or_update
   if server.name != self.get_hostname():
AttributeError: 'NoneType' object has no attribute 'name'

With Netbox v2.8.6

As identified in #149, the agent crashed with the following output ``` File "/tmp/netbox/netbox_agent/cli.py", line 39, in run server.netbox_create_or_update(config) File "/tmp/netbox/netbox_agent/server.py", line 306, in netbox_create_or_update if server.name != self.get_hostname(): AttributeError: 'NoneType' object has no attribute 'name' ``` With Netbox v2.8.6
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: DGNum/netbox-agent#157
No description provided.