[PATCH 2/6] docs: ACL: Mention the ACL object name along with the corresponding libvirt object name

Peter Krempa pkrempa at redhat.com
Mon Feb 20 10:47:05 UTC 2023


It's not trivial to figure out the ACL object name from our
documentation. Add it above the table outlining existing permissions.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 scripts/genaclperms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/genaclperms.py b/scripts/genaclperms.py
index eaf4a3d17d..527005dd98 100755
--- a/scripts/genaclperms.py
+++ b/scripts/genaclperms.py
@@ -91,7 +91,7 @@ for obj in sorted(perms.keys()):
     objname = obj.lower().replace("_", "-")
     olink = "object_" + objname

-    print('    <h3><a id="%s">%s</a></h3>' % (olink, klass))
+    print('    <h3><a id="%s"><code>%s</code> - %s</a></h3>' % (olink, objname, klass))
     print('    <table>')
     print('      <thead>')
     print('        <tr>')
-- 
2.39.2



More information about the libvir-list mailing list