]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/_ext: render constraint and policies if available
authorKefu Chai <kchai@redhat.com>
Mon, 10 May 2021 12:55:40 +0000 (20:55 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 May 2021 12:57:00 +0000 (20:57 +0800)
they are used by rbd options.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/_ext/ceph_confval.py

index 71038a47a7f2300cd5197e9664f2b8851488e5e5..c9712718b544f2ba34b795670bedbe9caba2c381 100644 (file)
@@ -56,6 +56,12 @@ TEMPLATE = '''
 {%- elif opt.max is defined %}
    :max: ``{{ opt.max }}``
 {%- endif %}
+{%- if opt.constraint %}
+   :constraint: {{ opt.constraint }}
+{% endif %}
+{%- if opt.policies %}
+   :policies: {{ opt.policies }}
+{% endif %}
 {%- if opt.see_also %}
    :see also: {{ opt.see_also | map('ref_confval') | join(', ') }}
 {%- endif %}