Skip to content

Commit 56e3bfc

Browse files
committed
test_easystack_easyconfig_opts doesn't pass because we're trying to index the yaml dict _with_ the eb suffix, even though that dict contains the names _without_ suffix
1 parent 8f3e439 commit 56e3bfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/framework/easystack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ def parse_by_easyconfigs(filepath, easyconfigs, easybuild_version=None, robot=Fa
175175
easyconf_name = list(easyconfig.keys())[0]
176176
# Add easyconfig name to the list
177177
if not easyconf_name.endswith('.eb'):
178-
easyconf_name = easyconf_name + '.eb'
179-
easystack.easyconfigs.append(easyconf_name)
178+
easyconf_name_with_eb = easyconf_name + '.eb'
179+
easystack.easyconfigs.append(easyconf_name_with_eb)
180180
# Add options to the ec_opts dict
181181
if 'options' in easyconfig[easyconf_name].keys():
182-
easystack.ec_opts[easyconf_name] = easyconfig[easyconf_name]['options']
182+
easystack.ec_opts[easyconf_name_with_eb] = easyconfig[easyconf_name]['options']
183183
else:
184184
dict_keys = ', '.join(easyconfig.keys())
185185
msg = "Failed to parse easystack file: expected a dictionary with one key (the EasyConfig name). "

0 commit comments

Comments
 (0)