From a46d872d3c1d91627b5f1a0f2117285cf153f078 Mon Sep 17 00:00:00 2001 From: Sreedhar Varma Date: Wed, 21 Dec 2016 07:19:46 -0500 Subject: [PATCH] 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 Co-Authored-By: Alekhya Mallina Co-Authored-By: Srinivas Dasthagiri --- autogenerate_config_docs/autohelp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogenerate_config_docs/autohelp.py b/autogenerate_config_docs/autohelp.py index 00cfba83..c72c01ff 100755 --- a/autogenerate_config_docs/autohelp.py +++ b/autogenerate_config_docs/autohelp.py @@ -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)