vincbeck commented on code in PR #66954:
URL: https://github.com/apache/airflow/pull/66954#discussion_r3249441681


##########
airflow-core/src/airflow/dag_processing/collection.py:
##########
@@ -891,7 +891,9 @@ def add_dag_asset_references(
             if not references:
                 dags[dag_id].schedule_asset_references = []
                 continue
-            referenced_assets = {assets[r.name, r.uri]: r.allow_producer_teams 
for r in references}
+            referenced_assets = {
+                assets[r.name, r.uri]: r.access_control.get("producer_teams", 
[]) for r in references

Review Comment:
   Yep `r.access_control` is a dict here so I cannot assume default value



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