summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-25 15:10:52 +0000
committerGerrit Code Review <review@openstack.org>2013-06-25 15:10:52 +0000
commita14066d2f3bafc28bad1bfead68191ac3088227c (patch)
tree676f081e046b59ec656f462b206b1d14591057da
parentc10bd26135c33cd173b1e52d02ce7865e2b0be17 (diff)
parent631a4950650538c2e009ddae5165dd1f18f6308f (diff)
downloadoslo-a14066d2f3bafc28bad1bfead68191ac3088227c.tar.gz
oslo-a14066d2f3bafc28bad1bfead68191ac3088227c.tar.xz
oslo-a14066d2f3bafc28bad1bfead68191ac3088227c.zip
Merge "Fixes crash when no help for an option"
-rwxr-xr-xopenstack/common/config/generator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/openstack/common/config/generator.py b/openstack/common/config/generator.py
index 09649e7..8ebfba1 100755
--- a/openstack/common/config/generator.py
+++ b/openstack/common/config/generator.py
@@ -205,6 +205,7 @@ def _print_opt(opt):
opt_name, opt_default, opt_help = opt.dest, opt.default, opt.help
if not opt_help:
sys.stderr.write('WARNING: "%s" is missing help string.\n' % opt_name)
+ opt_help = ""
opt_type = None
try:
opt_type = OPTION_REGEX.search(str(type(opt))).group(0)