Skip to content

NetBox custom scripts getting stuck #7914

Answered by DanSheps
zshorvat asked this question in Q&A
Discussion options

You must be logged in to vote

This is because you are logging the raw vlan object. Try either:

self.log_info(f'{vlan}')

or

import pprint
self.log_info(pprint.pformat(vlan))

It cannot serialize the vlan for storage in the db and throws an exception.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@DanSheps
Comment options

@zshorvat
Comment options

Answer selected by zshorvat
Comment options

You must be logged in to vote
1 reply
@zshorvat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants