images_ks (truple list): [(ks_file_name, ks_file_content),]
build_id (str): the pre-release repo build_id
"""
- index = 0
- data = {}
- for ksname, kickstart in images_ks.items():
- name = ksname.replace('.ks','')
- data['name'] = name
- data['kickstart'] = kickstart
- data['buildid'] = build_id
- data['images_path'] = os.path.join("images", name)
- trigger_next('%s/image_trigger_%s'
- %(os.getenv('WORKSPACE'), index),
+ for index, (ksname, kickstart) in enumerate(images_ks.items()):
+ name = ksname.replace('.ks', '')
+ data = {'name': name,
+ 'kickstart': kickstart,
+ 'buildid': build_id,
+ 'images_path': os.path.join("images", name)
+ }
+ trigger_next('%s/image_trigger_%s' % (os.getenv('WORKSPACE'), index),
data)
- index = index + 1
def make_repo(project, repo, backenddb):
"""