From cdd29e5ce55aee76f033585f520c3e6076182b15 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 26 May 2022 09:24:16 +1000 Subject: [PATCH] Update glue.py --- airflow/providers/amazon/aws/hooks/glue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/providers/amazon/aws/hooks/glue.py b/airflow/providers/amazon/aws/hooks/glue.py index 6b652e9fc7b75..fc485931a2d90 100644 --- a/airflow/providers/amazon/aws/hooks/glue.py +++ b/airflow/providers/amazon/aws/hooks/glue.py @@ -74,7 +74,7 @@ def __init__( raise ValueError("Cannot specify num_of_dpus with custom WorkerType") elif not worker_type_exists and num_workers_exists: raise ValueError("Need to specify custom WorkerType when specifying NumberOfWorkers") - elif worker_type_exists: + elif worker_type_exists and not num_workers_exists:: raise ValueError("Need to specify NumberOfWorkers when specifying custom WorkerType") elif num_of_dpus is None: self.num_of_dpus = 10