Considering that the user/group names can and will most likely vary,
(In length and hence to have consistent output).
I used PrettyTable [1] to print the rules (when invoked with
--format=list).
Example:
+------+-------+--------+----------------+
| Rule | User | Group | Permission |
+------+-------+--------+----------------+
| 1 | user7 | None | edit_system |
| 2 | user8 | None | control_system |
| 3 | None | group9 | control_system |
+------+-------+--------+----------------+
The patch is here [2].
[1]
https://pypi.python.org/pypi/PrettyTable/ (Already available in RHEL 6
and Fedora repositories)
[2]
http://gerrit.beaker-project.org/#/c/2293/
-Amit.
_______________________________________________
Beaker-devel mailing list
Beaker-devel(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/beaker-devel