ashb commented on a change in pull request #20184:
URL: https://github.com/apache/airflow/pull/20184#discussion_r766515023
##########
File path: airflow/providers/amazon/aws/operators/emr_add_steps.py
##########
@@ -62,7 +63,7 @@ def __init__(
):
if kwargs.get('xcom_push') is not None:
raise AirflowException("'xcom_push' was deprecated, use
'do_xcom_push' instead")
- if not (job_flow_id is None) ^ (job_flow_name is None):
+ if not exactly_one(job_flow_id is not None, job_flow_name is not None):
Review comment:
We can't use this in providers -- otherwise it means the provider will
only work with Airflow 2.3+, and while it's possible we can do that, this
change isn't worth imposing that limit..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]