]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
doc/_ext: ignore desc if it is unavailable
authorKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 11:57:27 +0000 (19:57 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 11:57:29 +0000 (19:57 +0800)
commit659d01dcb53285123efe56f01089694b12a8d845
tree1ced78cedfc8ebfa4ed03ebf881f256c63d21dcd
parentab7cb630ae0a3d15152fd7e63fc1f36fd0003637
doc/_ext: ignore desc if it is unavailable

there is chance that we don't have desc, desc_long or fmt_desc, in that
case, we should just skip desc before checking its length. so, just use
'if desc' which is able to check for None or empty string.

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