File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -183,18 +183,18 @@ def _auth_manager_is_authorized_map(
183
183
def get_connection_id (resource_pk ):
184
184
if not resource_pk :
185
185
return None
186
- connection = session .scalar (select (Connection ).where (Connection .id == resource_pk ).limit (1 ))
187
- if not connection :
186
+ conn_id = session .scalar (select (Connection . conn_id ).where (Connection .id == resource_pk ).limit (1 ))
187
+ if not conn_id :
188
188
raise AirflowException ("Connection not found" )
189
- return connection . conn_id
189
+ return conn_id
190
190
191
191
def get_dag_id_from_dagrun_id (resource_pk ):
192
192
if not resource_pk :
193
193
return None
194
- dagrun = session .scalar (select (DagRun ).where (DagRun .id == resource_pk ).limit (1 ))
195
- if not dagrun :
194
+ dag_id = session .scalar (select (DagRun . dag_id ).where (DagRun .id == resource_pk ).limit (1 ))
195
+ if not dag_id :
196
196
raise AirflowException ("DagRun not found" )
197
- return dagrun . dag_id
197
+ return dag_id
198
198
199
199
def get_dag_id_from_task_instance (resource_pk ):
200
200
if not resource_pk :
You can’t perform that action at this time.
0 commit comments