]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: evaluate --show-config* after CEPH_ARGS 1019/head
authorLoic Dachary <loic@dachary.org>
Mon, 30 Dec 2013 09:30:51 +0000 (10:30 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 30 Dec 2013 10:12:41 +0000 (11:12 +0100)
commit0b40bbd49507b1c3a5b75badd5eff6696d59cf6b
tree4e65d68c3d4e060d2db486abf1b8af6b516c9862
parent38d9613bcbfcb41c85748b29aa7a031ca231be42
common: evaluate --show-config* after CEPH_ARGS

The content of CEPH_ARGS is appended to the list of arguments. When
--show-config or --show-config-value is also set, it should be evaluated
after all arguments are parsed to accurately reflect the value that
would be visible to the program.

It failed to do so because the action for --show-config* was carried out
immediately. It is postponed until all options are parsed instead.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/config.cc
src/test/cli/ceph-conf/show-config-value.t
src/test/cli/ceph-conf/show-config.t [new file with mode: 0644]