This is an automated email from the ASF dual-hosted git repository. rabbah pushed a commit to branch fix-compile-script in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-python.git
commit 990691932f71c5d0fa84ecad4599676424923acf Author: Joshua Auerbach <[email protected]> AuthorDate: Fri Feb 26 13:32:44 2021 -0500 Fix glitch in latest runtime re OW_ENVIRONMENT_ENV --- core/python2ActionLoop/bin/compile | 3 ++- core/python3ActionLoop/bin/compile | 3 ++- core/python3AiActionLoop/bin/compile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/python2ActionLoop/bin/compile b/core/python2ActionLoop/bin/compile index 198ef18..b51e4c2 100755 --- a/core/python2ActionLoop/bin/compile +++ b/core/python2ActionLoop/bin/compile @@ -71,7 +71,8 @@ else echo "Execution Environment Mismatch" exit 1 fi """, True) - write_file("%s.env"%tgt_file, os.environ['__OW_EXECUTION_ENV']) + if os.environ.get("__OW_EXECUTION_ENV"): + write_file("%s.env"%tgt_file, os.environ['__OW_EXECUTION_ENV']) return tgt_file #check if a module exists diff --git a/core/python3ActionLoop/bin/compile b/core/python3ActionLoop/bin/compile index 9e01cb2..fb933a2 100755 --- a/core/python3ActionLoop/bin/compile +++ b/core/python3ActionLoop/bin/compile @@ -73,7 +73,8 @@ else echo "Execution Environment Mismatch" exit 1 fi """, True) - write_file("%s.env"%tgt_file, os.environ['__OW_EXECUTION_ENV']) + if os.environ.get("__OW_EXECUTION_ENV"): + write_file("%s.env"%tgt_file, os.environ['__OW_EXECUTION_ENV']) return tgt_file #check if a module exists diff --git a/core/python3AiActionLoop/bin/compile b/core/python3AiActionLoop/bin/compile index 9e01cb2..fb933a2 100755 --- a/core/python3AiActionLoop/bin/compile +++ b/core/python3AiActionLoop/bin/compile @@ -73,7 +73,8 @@ else echo "Execution Environment Mismatch" exit 1 fi """, True) - write_file("%s.env"%tgt_file, os.environ['__OW_EXECUTION_ENV']) + if os.environ.get("__OW_EXECUTION_ENV"): + write_file("%s.env"%tgt_file, os.environ['__OW_EXECUTION_ENV']) return tgt_file #check if a module exists
