diff --git a/automation/script/module.py b/automation/script/module.py index 954e0c444..6c15f76c5 100644 --- a/automation/script/module.py +++ b/automation/script/module.py @@ -3405,13 +3405,14 @@ def _run_deps(self, deps, clean_env_keys_deps, env, state, const, const_state, a 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 isinstance(d.get('env')[key], str): + if isinstance( + d.get('env')[key], (str, int, float)): d['tags'] += "," + t + str(d.get('env')[key]) elif isinstance(d.get('env')[key], list): for item in d.get('env')[key]: d['tags'] += "," + t + str(item) elif str(env.get(key, '')).strip() != '': - if isinstance(env[key], str): + if isinstance(env[key], (str, int, float)): d['tags'] += "," + t + str(env[key]) elif isinstance(env[key], list): for item in env[key]: @@ -3455,13 +3456,13 @@ def _run_deps(self, deps, clean_env_keys_deps, env, state, const, const_state, a update_tags_from_env = d.get("update_tags_from_env", []) for t in update_tags_from_env: if str(d.get('env', {}).get(t, '')).strip() != '': - if isinstance(d.get('env')[t], str): + if isinstance(d.get('env')[t], (str, int, float)): d['tags'] += "," + str(d.get('env')[t]) elif isinstance(d.get('env')[t], list): for item in d.get('env')[t]: d['tags'] += "," + str(item) elif str(env.get(t, '')).strip() != '': - if isinstance(env[t], str): + if isinstance(env[t], (str, int, float)): d['tags'] += "," + str(env[t]) elif isinstance(env[t], list): for item in env[t]: