Skip to content

Conversation

@ndom91
Copy link
Contributor

@ndom91 ndom91 commented Jul 28, 2020

Split the check for

if "power-ports" in deviceType or "power-port" in deviceType:
createPowerPorts(deviceType["power-ports"], dtSuccess.id, nb)

Into

if "power-ports" in deviceType:
createPowerPorts(deviceType["power-ports"], dtSuccess.id, nb)
if "power-port" in deviceType:
createPowerPorts(deviceType["power-port"], dtSuccess.id, nb)

Because it was causing issues

Otherwise this also worked without issue on v2.8.8!

Thanks for your work, this is the best importer I've found yet! Handles existing manufacturers / device types / ports flawlessly!

Copy link
Collaborator

@minitriga minitriga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@minitriga minitriga merged commit ee033cc into netbox-community:master Oct 9, 2020
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

Successfully merging this pull request may close these issues.

2 participants