'VirtualMachine' object has no attribute 'print_debug' #190
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#190
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Hi @taupehat can you still reproduce this with the tag 0.7.2 ?
Same issue