Fix TypeError in autohelp.py
The command "./autohelp-wrapper update cinder" is throwing "TypeError: sequence item 0: expected string, int found". This error is due to using ", ".join on the list of integers in autohelp.py. Change-Id: Ib4142466d15534adbdade8ebd8724a954f50e95d Closes-Bug: #1651738 Co-Authored-By: Nikesh Mahalka <Nikesh.Mahalka.ctr@kaminario.com> Co-Authored-By: Alekhya Mallina <alekhyam@biarca.com> Co-Authored-By: Srinivas Dasthagiri <srinivasd@biarca.com>
This commit is contained in:
parent
3e01d3715b
commit
a46d872d3c
|
@ -214,7 +214,7 @@ def _sanitize_default(opt):
|
|||
return str(opt.sample_default)
|
||||
|
||||
if ((type(opt).__name__ == "ListOpt") and (type(opt.default) == list)):
|
||||
return ", ".join(opt.default)
|
||||
return ", ".join(str(item) for item in opt.default)
|
||||
|
||||
default = str(opt.default)
|
||||
|
||||
|
|
Loading…
Reference in New Issue