]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
doc/_ext/ceph_confval: print "false" default values 41040/head
authorKefu Chai <kchai@redhat.com>
Wed, 28 Apr 2021 02:39:04 +0000 (10:39 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 28 Apr 2021 02:39:12 +0000 (10:39 +0800)
commita2ed53a7fa349ceaded07a7d1f4cbccbe8be87c5
tree777515fe86f1e395150e88a68ffc09f391eb9557
parentf680f5c5e8f6433378aea2e3c9448b9ab2d9369e
doc/_ext/ceph_confval: print "false" default values

before this change, we check the exisitence of default value of an
option using "if default", but this is wrong. what if "default" is an
empty string or a numeric value of 0, or just False?

after this change, its exisitence is checked using "if default is
defined", so all "false" default values are rendered as well.

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