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
adapter.job.logger.warning(f"Tenant {attrs['vrf_tenant']} not found for VRF {attrs['vrf']}")
Problem:
The code is trying to access "vrf" as an attribute from the attrs dictionary.
However, "vrf" is not an attribute in attrs; it is actually an identifier of the DiffSyncModel. Therefore, "vrf" should be accessed from the ids dictionary instead, like so: ids["vrf"]
If we continue accessing "vrf" via attrs["vrf"], a KeyError will be raised when this code attempts to log the warning.
Suggested Fix:
We should update the logger line to properly access "vrf" from ids: adapter.job.logger.warning(f"Tenant {attrs['vrf_tenant']} not found for VRF {ids['vrf']}").
Please apply the necessary fix.
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
I'm encountering a potential issue in the SSOT integration with ACI, specifically in the following code:
nautobot-app-ssot/nautobot_ssot/integrations/aci/diffsync/models/nautobot.py
Line 452 in f381da2
Problem:
The code is trying to access "vrf" as an attribute from the attrs dictionary.
However, "vrf" is not an attribute in attrs; it is actually an identifier of the DiffSyncModel. Therefore, "vrf" should be accessed from the ids dictionary instead, like so:
ids["vrf"]
If we continue accessing "vrf" via attrs["vrf"], a KeyError will be raised when this code attempts to log the warning.
Suggested Fix:
We should update the logger line to properly access "vrf" from ids:
adapter.job.logger.warning(f"Tenant {attrs['vrf_tenant']} not found for VRF {ids['vrf']}")
.Please apply the necessary fix.
Thanks
The text was updated successfully, but these errors were encountered: