Skip to content
Discussion options

You must be logged in to vote

See https://github.com/netbox-community/pynetbox/releases/tag/v6.0.0: RecordSet is a generator, which means it is only usable once.

If you want to use it twice, cast it to a list (switches = list(switches)) and use as list.

Replies: 1 comment 1 reply

Comment options

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

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