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

return none for wrong action

parent 7e8f39a3
No related branches found
No related tags found
2 merge requests!39Split logfile templates usage,!29Restructure log location
...@@ -94,6 +94,8 @@ def create_log_file_names( ...@@ -94,6 +94,8 @@ def create_log_file_names(
# if toolchain is given, then we build the build_log_file_name # if toolchain is given, then we build the build_log_file_name
if action in ["install", "remove"]: if action in ["install", "remove"]:
log_template = config_vars["build_log_template"] log_template = config_vars["build_log_template"]
else:
return None
else: else:
# if toolchain is not given, then we build the installer_log_file_name # if toolchain is not given, then we build the installer_log_file_name
log_template = config_vars["installer_log_template"] log_template = config_vars["installer_log_template"]
......
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