You've already forked netbox-docker
mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-11-17 00:03:21 +03:00
Fix setting CF data if CF object is missing
This commit is contained in:
@@ -35,6 +35,6 @@ for params in vlan_groups:
|
||||
vlan_group, created = VLANGroup.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
set_custom_fields_values(vlan_group, custom_field_data)
|
||||
|
||||
print("🏘️ Created VLAN Group", vlan_group.name)
|
||||
|
||||
set_custom_fields_values(vlan_group, custom_field_data)
|
||||
|
||||
Reference in New Issue
Block a user