Skip to content
Snippets Groups Projects
Commit bc13ef64 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

log the spe_variables only if present

parent 94ce844a
No related branches found
No related tags found
1 merge request!88Remove redundant argument to record script execution summary function
......@@ -606,10 +606,11 @@ def record_script_execution_summary(
f.write(f"{datetime.datetime.now().isoformat()}, {cmd_line}\n")
# logs script version
f.write(f"MPSD Software manager version: {__version__}\n")
f.write(
f"Spack environments branch: {spe_branch} "
f"(commit hash: {spe_commit_hash})\n"
)
if spe_branch and spe_commit_hash:
f.write(
f"Spack environments branch: {spe_branch} "
f"(commit hash: {spe_commit_hash})\n"
)
def clone_repo(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment