Skip to content

Commit

Permalink
fix for role and permission count in export (#36589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowrna committed Jan 26, 2024
1 parent 714a9a7 commit ce246c0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce246c0

Please sign in to comment.