]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
doc/_ext: check "default" for None
authorKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 10:17:00 +0000 (18:17 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 10:17:02 +0000 (18:17 +0800)
commitab7cb630ae0a3d15152fd7e63fc1f36fd0003637
tree65555033ec53affb6db78ba6d8580d6200c9466f
parentd1aacf555e5f4dfb8d1fece7ce1431cff7ca49eb
doc/_ext: check "default" for None

default could be None and we don't reference the default value using
`opt.default`, so this variable is always defined. to avoid printing
a None default value, check for a None value. see
https://jinja.palletsprojects.com/en/2.11.x/templates/#none

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