Skip to content
Snippets Groups Projects
Commit 21641e19 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad Committed by Hans Fangohr
Browse files

use `mpsd_release` instead of `release`. Good idea to have this consistent throughout the script.

parent 9c971521
No related branches found
No related tags found
1 merge request!36Available command
Pipeline #370515 failed
......@@ -315,7 +315,7 @@ def set_up_logging(loglevel="warning", file_path=None):
)
def get_available_toolchains(release: str) -> List[str]:
def get_available_toolchains(mpsd_release: str) -> List[str]:
"""Given a release, return the available toolchains.
This is based on the spack-environment's repository [1]. For this function
......@@ -343,8 +343,8 @@ def get_available_toolchains(release: str) -> List[str]:
'global_generic']
"""
logging.debug(f"get_available_toolchains({release=})")
logging.info(f"Retrieving available toolchains for release {release}")
logging.debug(f"get_available_toolchains({mpsd_release=})")
logging.info(f"Retrieving available toolchains for release {mpsd_release}")
print_log = logging.getLogger("print")
# create temporary directory
......@@ -352,7 +352,7 @@ def get_available_toolchains(release: str) -> List[str]:
tmp_dir_path = Path(tmp_dir.name)
# find toolchains by cloning repository and checking out right branch
clone_repo(tmp_dir_path, config_vars["spack_environments_repo"], branch=release)
clone_repo(tmp_dir_path, config_vars["spack_environments_repo"], branch=mpsd_release)
# look for directories defining the toolchains
toolchains = os.listdir(tmp_dir_path / "toolchains")
......@@ -360,7 +360,7 @@ def get_available_toolchains(release: str) -> List[str]:
logging.debug(msg)
# summarise toolchains found for use
print_log.info(f"MPSD software release {release} provides")
print_log.info(f"MPSD software release {mpsd_release} provides")
for toolchain in sorted(toolchains):
print_log.info(" " + toolchain)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment