Skip to content

Commit

Permalink
Convert dashes to underscores in version names
Browse files Browse the repository at this point in the history
  • Loading branch information
hwikle-lanl committed Jan 31, 2025
1 parent 988f6f9 commit 45199ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pavilion/module_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def _load(self, var_man: VariableSetManager, req_name: str, version: str) \
actions.append(ModuleLoad(module_name=mod_name, version=mod_vers))

env_vars = collections.OrderedDict()
vers_var_name = '{}_VERSION'.format(self.name.replace('*', 'any'))
vers_var_name = '{}_VERSION'.format(self.name.replace('*', 'any').replace('-', '_'))
if version:
env_vars[vers_var_name] = version
else:
Expand Down

0 comments on commit 45199ec

Please sign in to comment.