From 32128b37f9f56cc3a4766d2c71f95ebfa18910d3 Mon Sep 17 00:00:00 2001 From: desbonne Date: Mon, 10 Sep 2012 13:16:42 +0100 Subject: [PATCH] Forcing string conversion on boolean parameter Change-Id: Id891e6948b879dfcb8f777f272dc1cb34cd197e8 Reviewed-on: https://review.openstack.org/12793 Reviewed-by: James E. Blair Reviewed-by: Monty Taylor Approved: Monty Taylor Tested-by: Jenkins --- jenkins_jobs/modules/properties.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins_jobs/modules/properties.py b/jenkins_jobs/modules/properties.py index aac9d77ba..b53330729 100644 --- a/jenkins_jobs/modules/properties.py +++ b/jenkins_jobs/modules/properties.py @@ -92,6 +92,7 @@ def string_param(parser, xml_parent, data): def bool_param(parser, xml_parent, data): + data['default'] = str(data.get('default', 'false')).lower() base_param(parser, xml_parent, data, True, 'hudson.model.BooleanParameterDefinition')