Skip to content

Commit 9ed654b

Browse files
committed
Fixes 2844 custom_config + minimal (#2845)
1 parent 65f9f74 commit 9ed654b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ release.
5252
- Fixed an issue with MIXED and STRICT wrapper policies raising the error prematurely #2770
5353
- Do not print warning if an experiment has been successfully deleted #2334 #2793
5454
- Fixed an issue with undefined variables inside a list #2773
55+
- Fixed an issue with --minimal flag of `autosubmit expid` not working correctly #2845
5556

5657
**Enhancements:**
5758

autosubmit/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ def as_conf_default_values(autosubmit_version: str, exp_id: str, hpc: str = "",
6767

6868
if minimal_configuration:
6969
if 'DEFAULT' in yaml_data:
70-
yaml_data['DEFAULT']['CUSTOM_CONFIG'] = f'"%PROJDIR%/{git_as_conf}"'
70+
yaml_data['DEFAULT']['CUSTOM_CONFIG'] = f"%PROJDIR%/{git_as_conf}"
7171

7272
yaml.dump(yaml_data, as_conf_file)

test/integration/test_expid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def test_as_conf_default_values(git_command, git_session, autosubmit_exp: Callab
227227
yaml_data = yaml.load(open(tmp_path / f"{exp.expid}/conf/metadata/experiment_data.yml"))
228228
assert yaml_data['DEFAULT']['HPCARCH'] == "MN5"
229229
assert yaml_data['DEFAULT']['EXPID'] == exp.expid
230-
assert yaml_data['DEFAULT']['CUSTOM_CONFIG'] == f'"{tmp_path}/{exp.expid}/proj/test_3"'
230+
assert yaml_data['DEFAULT']['CUSTOM_CONFIG'] == f"{tmp_path}/{exp.expid}/proj/test_3"
231231
assert yaml_data['LOCAL']['PROJECT_PATH'] == ""
232232

233233
if git_command[0] != '':

0 commit comments

Comments
 (0)