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

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

Open
taupehat opened this issue Aug 10, 2021 · 2 comments
Open

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

taupehat opened this issue Aug 10, 2021 · 2 comments

Comments

@taupehat
Copy link

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
Copy link
Collaborator

cyrinux commented Apr 4, 2022

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

@correoenuve
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants