This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-6-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 339d67d0da3cd4a1f0ec442f2e467932ec87419c
Author: Mike Sadler <[email protected]>
AuthorDate: Fri May 5 15:09:58 2023 -0500

    Format DagBag.dagbag_report() Output (#31095)
    
    The whitespace before `{table}`
    is throwing off the headers when printing `DagBag.dagbag_report()`
    
    (cherry picked from commit 41c87464428d8d31ba81444b3adf457bc968e11d)
---
 airflow/models/dagbag.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/airflow/models/dagbag.py b/airflow/models/dagbag.py
index 305009e2ea..5df74c1f2b 100644
--- a/airflow/models/dagbag.py
+++ b/airflow/models/dagbag.py
@@ -605,8 +605,7 @@ class DagBag(LoggingMixin):
         -------------------------------------------------------------------
         Number of DAGs: {dag_num}
         Total task number: {task_num}
-        DagBag parsing time: {duration}
-        {table}
+        DagBag parsing time: {duration}\n{table}
         """
         )
         return report

Reply via email to