Skip to content

Commit

Permalink
handle if env not in dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
anandhu-eng committed Nov 29, 2024
1 parent 8de2cf9 commit 0cee8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 0cee8c8

Please sign in to comment.