diff --git a/mpsd-software-environment.py b/mpsd-software-environment.py
index 5ed317e73b5818f01f39b54eb405c3bee14e7d7f..6ff170d17b34b05fa4b898da102583a5a34ed9cf 100755
--- a/mpsd-software-environment.py
+++ b/mpsd-software-environment.py
@@ -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 machine configs
     os.environ.get("MPSD_OS", "UNKNOWN_OS")
@@ -918,7 +918,8 @@ def main():
     script_dir = Path(os.path.dirname(os.path.realpath(__file__)))
 
     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