mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
add support for regions and vms
This commit is contained in:
@@ -542,10 +542,8 @@ class ConfigContextModel(models.Model):
|
||||
|
||||
# Compile all config data, overwriting lower-weight values with higher-weight values where a collision occurs
|
||||
data = OrderedDict()
|
||||
#for context in ConfigContext.objects.get_for_object(self):
|
||||
# data = deepmerge(data, context.data)
|
||||
|
||||
for context in self.config_contexts:
|
||||
for context in self.config_context_data:
|
||||
data = deepmerge(data, context)
|
||||
|
||||
# If the object has local config context data defined, merge it last
|
||||
|
Reference in New Issue
Block a user