Skip to content

Commit aef5e81

Browse files
committed
change el_type_uri to pull from spec
1 parent e1d3491 commit aef5e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auditmiddleware/_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _build_res_spec(self, name, parent_type_uri, spec=None):
232232
# derive the name of the individual resource instances (elements)
233233
# by omitting the last character of the resource name
234234
el_type_name = spec.get('el_type_name', type_name[:-1])
235-
el_type_uri = type_uri[:-1]
235+
el_type_uri = spec.get('el_type_uri', type_uri[:-1])
236236
childs_parent_type_uri = el_type_uri
237237
else:
238238
childs_parent_type_uri = type_uri

0 commit comments

Comments
 (0)