Error while updating Clusters without site
After upgrading NetBox in v4.2.9 and Netbox-sync in v1.8.0, the Clusters without Site (configured with cluster_site_relation: .* = <NONE>) can't be updated anymore. While parsing the Clusters, the synchro gives me the following error:
ERROR: This 'site' data structure does not contain the primary key 'name' got: {'name': None}
I think this is related to the scope_type field added to NetBox Cluster object in NetBox (https://github.com/bb-Ricardo/netbox-sync/commit/80ac276b7beaa4fd18d2b5437abab9c3037dc75b).
Hello, I opened a discussion on the same error a few days ago. #466
Oh thanks, I forgot to look in the discussions before opening the issue.
@steve-hbt for me the line added in #469 seems to have solved the issue. Can you try it to see if it also work for you?
Oh thanks, I forgot to look in the discussions before opening the issue.
@steve-hbt for me the line added in #469 seems to have solved the issue. Can you try it to see if it also work for you?
Hello @joachimBurket I've just tested your modification, and in my environment, it seems to resolve the error!
Thanks for help!
Thank you so much for figuring this out.
please read: https://github.com/bb-Ricardo/netbox-sync/issues/474