mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +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
|
||||
def _param_to_sig(p):
|
||||
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:
|
||||
return p
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user