'VirtualMachine' object has no attribute 'print_debug' #190

Open
opened 2021-08-10 23:31:46 +02:00 by taupehat · 2 comments
taupehat commented 2021-08-10 23:31:46 +02:00 (Migrated from github.com)

When attempting "netbox_agent -c /etc/netbox_agent.yaml --register --debug" from a virtual machine the following is output:
Exception: virtual.cluster_name parameter is mandatory because it's a VM

So I added to the config:
virtual:
cluster_name: cluster.whatever

Which then throws:
AttributeError: 'VirtualMachine' object has no attribute 'print_debug'

Seems like a pretty simple fix to add debug here, and obviously useful.

Configuration file
netbox:
url: 'https://something.example'
token: '[redacted]'
ssl_verify: false

network:
ignore_interfaces: "(dummy.|docker.)"
ignore_ips: (127.0.0..*)

device:
server_role: "Server"

virtual:
cluster_name: foo.whatever

inventory: true

Environment:
Centos 7 (64-bit) running on current ESXi
Netbox agent version 0.6.2

When attempting "netbox_agent -c /etc/netbox_agent.yaml --register --debug" from a virtual machine the following is output: Exception: virtual.cluster_name parameter is mandatory because it's a VM So I added to the config: virtual: cluster_name: cluster.whatever Which then throws: AttributeError: 'VirtualMachine' object has no attribute 'print_debug' Seems like a pretty simple fix to add debug here, and obviously useful. **Configuration file** netbox: url: 'https://something.example' token: '[redacted]' ssl_verify: false network: ignore_interfaces: "(dummy.*|docker.*)" ignore_ips: (127\.0\.0\..*) device: server_role: "Server" virtual: cluster_name: foo.whatever inventory: true **Environment:** Centos 7 (64-bit) running on current ESXi Netbox agent version 0.6.2
cyrinux commented 2022-04-04 18:53:59 +02:00 (Migrated from github.com)

Hi @taupehat can you still reproduce this with the tag 0.7.2 ?

Hi @taupehat can you still reproduce this with the tag 0.7.2 ?
correoenuve commented 2022-04-07 10:58:57 +02:00 (Migrated from github.com)

Same issue

Same issue
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#190
No description provided.