Merge "Fix issue that cause JCloud instance to be set"

This commit is contained in:
Jenkins 2016-08-18 16:16:39 +00:00 committed by Gerrit Code Review
commit ef02e0ce40
1 changed files with 3 additions and 4 deletions

View File

@ -1089,11 +1089,10 @@ def jclouds(parser, xml_parent, data):
count: 2
stop-on-terminate: False
"""
buildWrapper = XML.SubElement(xml_parent,
'jenkins.plugins.jclouds.compute.'
'JCloudsBuildWrapper')
instances = XML.SubElement(buildWrapper, 'instancesToRun')
if 'instances' in data:
buildWrapper = XML.SubElement(
xml_parent, 'jenkins.plugins.jclouds.compute.JCloudsBuildWrapper')
instances = XML.SubElement(buildWrapper, 'instancesToRun')
for foo in data['instances']:
for template, params in foo.items():
instance = XML.SubElement(instances,