Skip to content

Commit 0fee455

Browse files
authored
Merge pull request #110 from sapcc/el_type_uri_from_spec
change el_type_uri to pull from spec
2 parents e1d3491 + 8298477 commit 0fee455

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ coverage!=4.4,>=4.0 # Apache-2.0
1111
fixtures>=3.0.0 # Apache-2.0/BSD
1212
mock>=3.0.0 # BSD
1313
oslotest>=3.8.0 # Apache-2.0
14-
pytz==2024.2 # MIT
14+
pytz==2025.1 # MIT
1515
requests-mock>=1.2.0 # Apache-2.0
1616
#stevedore>=1.20.0 # Apache-2.0
1717
stestr>=2.0.0 # Apache-2.0

0 commit comments

Comments
 (0)