mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-03-07 03:56:34 +00:00
Fix setting CF data if CF object is missing
This commit is contained in:
@@ -47,6 +47,6 @@ for params in devices:
|
||||
device, created = Device.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
set_custom_fields_values(device, custom_field_data)
|
||||
|
||||
print("🖥️ Created device", device.name)
|
||||
|
||||
set_custom_fields_values(device, custom_field_data)
|
||||
|
||||
Reference in New Issue
Block a user