there is chance that the value of of the argdesc's kv pair contains
"=". for instance, the goodchars regexp could contain '='. so we should
stop at the first '='.
this change fixes the parsing of "osd pool application set" command.
Signed-off-by: Kefu Chai <kchai@redhat.com>
@staticmethod
def _parse_arg_desc(desc):
try:
- return dict(kv.split('=') for kv in desc.split(',') if kv)
+ return dict(kv.split('=', 1) for kv in desc.split(',') if kv)
except ValueError:
return desc