Skip to content

Commit

Permalink
Update glue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Koc committed May 27, 2022
1 parent 5957b61 commit cdd29e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/amazon/aws/hooks/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdd29e5

Please sign in to comment.