From 46c86bdb0eff58a004321da0ab67712906c3a5a9 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 15 Apr 2020 13:01:07 +0200 Subject: [PATCH] Be more defensive --- plays/filter_plugins/update_env.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plays/filter_plugins/update_env.py b/plays/filter_plugins/update_env.py index eba3474..f798adb 100644 --- a/plays/filter_plugins/update_env.py +++ b/plays/filter_plugins/update_env.py @@ -2,8 +2,12 @@ def filter_update_env(config, env): + if config.get("env", False) is False: + return config + for key, val in env: config["env"][key] = val + return config