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
Platforms create when running the bootstrap integration
Observed Behavior
Key error occurs on loading data from Nautobot if there is no Manufacturer associated with a platform.
{
"exc_message": [
"'NoneType' object has no attribute 'name'"
],
"exc_module": "builtins",
"exc_type": "AttributeError"
}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/integrations/bootstrap/diffsync/adapters/nautobot.py", line 342, in load_platform
self.get(self.platform, nb_platform.name)
File "/usr/local/lib/python3.11/site-packages/diffsync/__init__.py", line 724, in get
return self.store.get(model=obj, identifier=identifier)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/diffsync/store/local.py", line 49, in get
raise ObjectNotFound(f"{modelname} {uid} not present in {str(self)}")
diffsync.exceptions.ObjectNotFound: platform linux not present in LocalStore
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nautobot/extras/jobs.py", line 1136, in run_job
result = job(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nautobot/extras/jobs.py", line 149, in __call__
return self.run(*args, **deserialized_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/integrations/bootstrap/jobs.py", line 105, in run
super().run(dryrun=self.dryrun, memory_profiling=self.memory_profiling, *args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/jobs/base.py", line 354, in run
self.sync_data(memory_profiling)
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/jobs/base.py", line 171, in sync_data
self.load_target_adapter()
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/integrations/bootstrap/jobs.py", line 97, in load_target_adapter
self.target_adapter.load()
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/integrations/bootstrap/diffsync/adapters/nautobot.py", line 1309, in load
self.load_platform()
File "/usr/local/lib/python3.11/site-packages/nautobot_ssot/integrations/bootstrap/diffsync/adapters/nautobot.py", line 357, in load_platform
manufacturer=nb_platform.manufacturer.name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
Steps to Reproduce
Create a platform in Nautobot with no assigned Manufacturer attribute
Run the Bootstrap Integration to sync platforms
The text was updated successfully, but these errors were encountered:
Environment
Expected Behavior
Platforms create when running the bootstrap integration
Observed Behavior
Key error occurs on loading data from Nautobot if there is no Manufacturer associated with a platform.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: