Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def print_env_vars():
keys = str(os.environ.keys().replace("', '", "'|'").split("|")
keys.sort()
for key in keys:
print(key)
get_env_vars_operator = PythonOperator(
task_id='get_env_vars_task',
python_callable=print_env_vars
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment