Skip to content

Commit

Permalink
Convert execution dict values to str (apache#27165)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkarish committed Oct 29, 2022
1 parent 5df1d6e commit 7972f1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/providers/google/cloud/hooks/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def create_execution(
metadata = metadata or ()
client = self.get_executions_client()
parent = f"projects/{project_id}/locations/{location}/workflows/{workflow_id}"
execution = {k: str(v) if isinstance(v, dict) else v for k, v in execution.items()}
return client.create_execution(
request={"parent": parent, "execution": execution},
retry=retry,
Expand Down

0 comments on commit 7972f1e

Please sign in to comment.