From 0cee8c8f2e924f9880508c3819d3d0aa31afbfcf Mon Sep 17 00:00:00 2001 From: anandhu-eng Date: Sat, 30 Nov 2024 00:22:05 +0530 Subject: [PATCH] handle if env not in dependency --- automation/script/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/script/module.py b/automation/script/module.py index 9ab791fdeb..04ed30720c 100644 --- a/automation/script/module.py +++ b/automation/script/module.py @@ -3526,7 +3526,7 @@ def _run_deps(self, deps, clean_env_keys_deps, env, state, const, const_state, a "update_tags_from_env_with_prefix", {}) for t in update_tags_from_env_with_prefix: for key in update_tags_from_env_with_prefix[t]: - if str(d.get('env').get(key, '')).strip() != '': + if str(d.get('env', {}).get(key, '')).strip() != '': d['tags'] += "," + t + str(d.get('env')[key]) elif str(env.get(key, '')).strip() != '': d['tags'] += "," + t + str(env[key])