Skip to content

Commit

Permalink
fix for empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
ms32035 committed Mar 8, 2024
1 parent ec69143 commit 2e6235b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosmos/operators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ def add_global_flags(self) -> list[str]:
if isinstance(global_flag_value, dict):
yaml_string = yaml.dump(global_flag_value)
flags.extend([dbt_name, yaml_string])
elif isinstance(global_flag_value, list):
elif isinstance(global_flag_value, list) and global_flag_value:
flags.extend([dbt_name, " ".join(global_flag_value)])
elif isinstance(global_flag_value, list):
continue
else:
flags.extend([dbt_name, str(global_flag_value)])
for global_boolean_flag in self.global_boolean_flags:
Expand Down

0 comments on commit 2e6235b

Please sign in to comment.