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

View File

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