]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: ACL: Mention the ACL object name along with the corresponding libvirt object...
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Feb 2023 15:48:35 +0000 (16:48 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Feb 2023 17:26:47 +0000 (18:26 +0100)
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@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/genaclperms.py

index eaf4a3d17d26635651130c0189d66b5d037e9f24..527005dd9834453f4e2bef51c8b6965479bb9514 100755 (executable)
@@ -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>')