mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-08-14 10:08:24 +02:00
Fix setting CF data if CF object is missing
This commit is contained in:
@ -34,6 +34,6 @@ for params in prefixes:
|
||||
prefix, created = Prefix.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
set_custom_fields_values(prefix, custom_field_data)
|
||||
|
||||
print("📌 Created Prefix", prefix.prefix)
|
||||
|
||||
set_custom_fields_values(prefix, custom_field_data)
|
||||
|
Reference in New Issue
Block a user