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

clarify that get_installer_log_file gets name

parent 8a7371af
Branches
No related tags found
3 merge requests!38Rename log related variables,!37Update log names and variable names,!29Restructure log location
Pipeline #370222 failed
This commit is part of merge request !29. Comments created here will be created in the context of that merge request.
...@@ -153,7 +153,7 @@ def read_metadata_from_logfile(logfile: Union[str, Path]) -> dict: ...@@ -153,7 +153,7 @@ def read_metadata_from_logfile(logfile: Union[str, Path]) -> dict:
} }
def get_installer_log_file(mpsd_release: str, cmd: str, script_dir: str) -> str: def get_installer_log_file_name(mpsd_release: str, cmd: str, script_dir: str) -> str:
"""Get installer log file name.""" """Get installer log file name."""
# Get machine configs # Get machine configs
os.environ.get("MPSD_OS", "UNKNOWN_OS") os.environ.get("MPSD_OS", "UNKNOWN_OS")
...@@ -918,7 +918,8 @@ def main(): ...@@ -918,7 +918,8 @@ def main():
script_dir = Path(os.path.dirname(os.path.realpath(__file__))) script_dir = Path(os.path.dirname(os.path.realpath(__file__)))
set_up_logging( set_up_logging(
args.loglevel, get_installer_log_file(args.release, args.action, script_dir) args.loglevel,
get_installer_log_file_name(args.release, args.action, script_dir),
) )
# Check the command and run related function # Check the command and run related function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment