diff --git a/hydra_base/lib/network.py b/hydra_base/lib/network.py index 7566a358..73db8817 100644 --- a/hydra_base/lib/network.py +++ b/hydra_base/lib/network.py @@ -264,7 +264,7 @@ def _bulk_add_resource_attrs(network_id, ref_key, resources, resource_name_map, template_j = template.get_template(resource_type.child_template_id, user_id=admin_id) template_lookup[template_j.id] = template_j for tt in template_j.templatetypes: - typeattr_lookup[tt.id] = tt.typeattrs + typeattr_lookup[tt.id] = tt.typeattrs or [] typeattrs = typeattr_lookup.get(resource_type.id, []) #TODO this should be type_id for ta in typeattrs: