dstandish commented on code in PR #46571:
URL: https://github.com/apache/airflow/pull/46571#discussion_r1947055107


##########
airflow/utils/cli.py:
##########
@@ -366,3 +368,12 @@ def _wrapper(*args, **kwargs):
                     logging.disable(logging.NOTSET)
 
     return cast(T, _wrapper)
+
+
+def validate_dag_bundle_arg(bundle_names: list[str]) -> None:
+    """Make sure only known bundles are passed as arguments."""
+    known_bundles = {b.name for b in DagBundlesManager().get_all_dag_bundles()}
+
+    non_existant_bundles: set[str] = set(bundle_names) - known_bundles

Review Comment:
   since i made another suggestion already...
   ```suggestion
       unknown_bundles: set[str] = set(bundle_names) - known_bundles
   ```
   they might exist.... somewhere??? :) 



-- 
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]

Reply via email to