Replies: 1 comment 1 reply
-
Netbox version? You can't pass random types to python functions and expect them to work. In Netbox 4.0, log_info is documented to take two arguments, the first being a message and the second being an object, both optional.
Therefore, these should work:
Passing an object as the message might happen to work, because Netbox might implicitly call You could try using a function which explicitly converts to string form, e.g.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed the output of
self.log_info(some_device)
differs fromself.log_info([some_device])
. The first outputs the object name while the second outputs[]
. This is problematic when outputting an object within a list. I don't think it is intended and it worked some time ago.Beta Was this translation helpful? Give feedback.
All reactions