You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, after updating NetBox to version 4.5.1, the following error appears when running the script:
Traceback (most recent call last):
File "/opt/scripts/netbox-sync/./netbox-sync.py", line 146, in <module>
main()
File "/opt/scripts/netbox-sync/./netbox-sync.py", line 111, in main
source.apply()
File "/opt/scripts/netbox-sync/module/sources/vmware/connection.py", line 399, in apply
view_details.get("view_handler")(obj)
File "/opt/scripts/netbox-sync/module/sources/vmware/connection.py", line 2200, in add_virtual_machine
detailed_data_dict.get("distroVersion") not in platform:
TypeError: 'in <string>' requires string as left operand, not NoneType
For now, I've temporarily modified the code to work around this issue:
distro_version = detailed_data_dict.get("distroVersion", "")
if detailed_data_dict.get("familyName", "").lower() == "linux" and \
distro_version and distro_version not in platform:
platform = f'{platform} {distro_version}'
Activity
bb-Ricardo commentedon Jan 28, 2026
Thank you for the issue. Currently testing NetBox 4.5.1
reworks and fixes again detecting of distro version #492
bb-Ricardo commentedon Jan 29, 2026
Hi,
I just pushed another commit to the
developmentbranch. would you be able to test it out check if it is working now?Thank you
Sivolen commentedon Jan 30, 2026
Hi,
I've checked it — it works without errors, thanks!
Lense: port upstream fix for wrong platform evaluation (bb-Ricardo#448/…