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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ce246c0ed8 fix for role and permission count in export (#36589)
ce246c0ed8 is described below

commit ce246c0ed8b5c0c652034734443dc6e863aac66e
Author: Bowrna <[email protected]>
AuthorDate: Sat Jan 27 01:10:10 2024 +0530

    fix for role and permission count in export (#36589)
---
 airflow/providers/fab/auth_manager/cli_commands/role_command.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/airflow/providers/fab/auth_manager/cli_commands/role_command.py 
b/airflow/providers/fab/auth_manager/cli_commands/role_command.py
index 9288474ab0..b94e61e2c5 100644
--- a/airflow/providers/fab/auth_manager/cli_commands/role_command.py
+++ b/airflow/providers/fab/auth_manager/cli_commands/role_command.py
@@ -176,7 +176,9 @@ def roles_export(args):
     kwargs = {} if not args.pretty else {"sort_keys": False, "indent": 4}
     with open(filename, "w", encoding="utf-8") as f:
         json.dump(export_data, f, **kwargs)
-    print(f"{len(export_data)} roles with permissions successfully exported to 
{filename}")
+    print(
+        f"{len(exporting_roles)} roles with {len(export_data)} linked 
permissions successfully exported to {filename}"
+    )
 
 
 @cli_utils.action_cli

Reply via email to