AmoghAtreya commented on code in PR #70359:
URL: https://github.com/apache/airflow/pull/70359#discussion_r3656079460
##########
providers/amazon/src/airflow/providers/amazon/aws/operators/s3.py:
##########
@@ -697,11 +697,6 @@ def __init__(
self._keys: str | list[str] = ""
- if not exactly_one(keys is None, all(var is None for var in [prefix,
from_datetime, to_datetime])):
- raise AirflowException(
- "Either keys or at least one of prefix, from_datetime,
to_datetime should be set."
- )
-
Review Comment:
Just committed the change for that. Updated
'S3DeleteObjectsOperator.__init__' to use explicit 'is not None' checks while
retaining execution-time guards as requested by you @shahar1. This change has
been committed and is dependent on #70505 being merged.
--
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]