Cause: contents are differ between Mapping V1 and V2
Fix: hard code item counts
Change-Id: Id3b37911b3bf3a3147b9435aedf62f0d3a59567c
}
submit_info['pre_created'] = []
- for obs_target_prj, obs_stg_prj, obs_pkg, build_cfg in obs_target_prjs:
+ for item in obs_target_prjs:
enable_build = True
- if build_cfg.build == 'no':
+ obs_target_prj, obs_stg_prj, obs_pkg = item[0:3]
+ if len(item) >= 4 and item[3].build == 'no':
print 'Set disable build for %s' % (obs_target_prj)
enable_build = False
url = 'ssh://%s:%s' % (os.getenv('GERRIT_HOSTNAME'),