Skip to content

Commit 519ce4e

Browse files
paulborgermansalanking
authored andcommitted
[#576] Add missing admin_mode in JSON message for metadata.apply_atomic_operations
1 parent 9c3b484 commit 519ce4e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

irods/manager/metadata_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def apply_atomic_operations(self, model_cls, path, *avu_ops):
182182
if not all(isinstance(op,AVUOperation) for op in avu_ops):
183183
raise InvalidAtomicAVURequest("avu_ops must contain 1 or more AVUOperations")
184184
request = {
185+
"admin_mode": True if kw.ADMIN_KW in self.__kw.keys() else False,
185186
"entity_name": path,
186187
"entity_type": self._model_class_to_resource_description(model_cls),
187188
"operations" : [self._avu_operation_to_dict(op) for op in avu_ops]

0 commit comments

Comments
 (0)