mirror of
https://github.com/ceph/ceph
synced 2025-04-08 18:57:39 +00:00
doc/_ext: accept params separated with ", "
"mon enable_stretch_mode" command's arg descriptors are delimited with ", ", so we should ignore empty kv when split the params with ",". Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
202b805aaf
commit
ef281f6b55
@ -164,7 +164,7 @@ class Sig:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _param_to_sig(p):
|
def _param_to_sig(p):
|
||||||
try:
|
try:
|
||||||
return {kv.split('=')[0]: kv.split('=')[1] for kv in p.split(',')}
|
return {kv.split('=')[0]: kv.split('=')[1] for kv in p.split(',') if kv}
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user