convert_image_dir(os.path.join(sync_src, 'images'),
fields['repo'], fields['name'])
+ sync_status = 'success'
for loop in range(2):
if sync(sync_src, sync_dest):
print "Retry sync %s to %s" % (sync_src, sync_dest)
- status = 'failed'
+ sync_status = 'failed'
else:
print "Success sync %s to %s" % (sync_src, sync_dest)
- status = 'success'
+ sync_status = 'success'
break;
- if(status == 'failed'):
+ if(sync_status == 'failed'):
print "Error: unable to sync %s to %s" % (sync_src, sync_dest)
+ status = 'failed'
xml_string = get_xml(os.path.join(outdir, build_id), name)