From 0372df57046012dba76059b3dc0efbe8e7347956 Mon Sep 17 00:00:00 2001 From: alaskowski <alaskowski@ethz.ch> Date: Tue, 28 Feb 2023 08:56:59 +0100 Subject: [PATCH] SSDM-13300: Fixes to init_analysis command in obis --- .../src/python/obis/dm/data_mgmt.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app-openbis-command-line/src/python/obis/dm/data_mgmt.py b/app-openbis-command-line/src/python/obis/dm/data_mgmt.py index 5adb7333b3d..c375356d7be 100644 --- a/app-openbis-command-line/src/python/obis/dm/data_mgmt.py +++ b/app-openbis-command-line/src/python/obis/dm/data_mgmt.py @@ -477,9 +477,17 @@ class GitDataMgmt(AbstractDataMgmt): self.git_wrapper.git_ignore(analysis_folder_relative) # set data_set_id to analysis repository so it will be used as parent when committing - set_property(self.debug, self.settings_resolver.repository, "data_set_id", - parent_data_set_id, False, False) - return result + try: + self.settings_resolver.repository.set_value_for_parameter("data_set_id", + parent_data_set_id, "local", + apply_rules=True) + except Exception as e: + if self.debug is True: + raise e + return CommandResult(returncode=-1, output="Error: " + str(e)) + else: + return CommandResult(returncode=0, output="") + @with_restore def sync(self): -- GitLab