Skip to content

Error after update netbox to version 4.5.1 #492

Closed

Description

@Sivolen

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

  1. bb-Ricardo commented on Jan 28, 2026

    @bb-Ricardo
    Owner

    Thank you for the issue. Currently testing NetBox 4.5.1

  2. added
    bug
    on Jan 28, 2026
  3. bb-Ricardo commented on Jan 29, 2026

    @bb-Ricardo
    Owner

    Hi,

    I just pushed another commit to the development branch. would you be able to test it out check if it is working now?

    Thank you

  4. added this to the v1.9.0 milestone on Jan 29, 2026
  5. Sivolen commented on Jan 30, 2026

    @Sivolen
    Author

    Hi,
    I've checked it — it works without errors, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions