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

Peter Krempa posted 6 patches 2 years, 11 months ago
[PATCH 2/6] docs: ACL: Mention the ACL object name along with the corresponding libvirt object name
Posted by Peter Krempa 2 years, 11 months ago
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>
---
 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
Re: [PATCH 2/6] docs: ACL: Mention the ACL object name along with the corresponding libvirt object name
Posted by Daniel P. Berrangé 2 years, 11 months ago
On Mon, Feb 20, 2023 at 11:47:05AM +0100, Peter Krempa wrote:
> 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>
> ---
>  scripts/genaclperms.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|