You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --inherit-env option supposedly supports the python-script runner:
-e, --inherit-env Pass all the environment variables which are
accessible to the CLI as "env" parameter to the
action. Note: Only works with python, local and remote
runners.
But it doesn't actually pass the environment variables to the Python script. I suspect that this has been broken for some time.
The core.local and core.remote actions do pass their environment variables correctly.
ISSUE TYPE
Pick one below and delete the rest:
Bug Report
STACKSTORM VERSION
st2 3.1dev (95d7cc3), on Python 2.7.12
OS / ENVIRONMENT / INSTALL METHOD
Ubuntu 16.04, installed as part of setup_e2e_tests in st2ci pack.
---
name: test_inherit_env_python_script_runnerdescription: Test the --inherit-env option to the st2 command for an action run with the python-script runnerenabled: truerunner_type: python-scriptentry_point: test_inherit_env.pyparameters: {}
SUMMARY
The
--inherit-env
option supposedly supports thepython-script
runner:But it doesn't actually pass the environment variables to the Python script. I suspect that this has been broken for some time.
The
core.local
andcore.remote
actions do pass their environment variables correctly.ISSUE TYPE
Pick one below and delete the rest:
STACKSTORM VERSION
st2 3.1dev (95d7cc3), on Python 2.7.12
OS / ENVIRONMENT / INSTALL METHOD
Ubuntu 16.04, installed as part of
setup_e2e_tests
in st2ci pack.STEPS TO REPRODUCE
actions/test_inherit_env_python_script_runner.yaml
:actions/test_inherit_env.py
:EXPECTED RESULTS
Note how the
SLACK_
environment variables show up in the output from st2.ACTUAL RESULTS
Note how the
SLACK_
environment variables do not show up in the output from st2.The text was updated successfully, but these errors were encountered: