From 97ec3b6e593cd08a7d6525807e86769faf5743b0 Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Sat, 18 Jun 2016 09:37:40 +0900 Subject: [PATCH] update the info when images and images_count is same Change-Id: I51d907c246c32ad769f8e8af22adc202c3b62c86 --- job_post_image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/job_post_image.py b/job_post_image.py index b67de2f..8e327ce 100755 --- a/job_post_image.py +++ b/job_post_image.py @@ -62,13 +62,14 @@ def main(): "status": status, "url": url}] } + build.update_info(info, project) saveinfo = build.get_info(project) #print "images count : %s %s \n" % ( len(saveinfo['images']), saveinfo['images_count']) - if len(saveinfo['images']) + 1 >= saveinfo['images_count']: + if len(saveinfo['images']) == saveinfo['images_count']: # clear chksnap flag info['chksnap'] = '0' - build.update_info(info, project) + build.update_info(info, project) if __name__ == "__main__": sys.exit(main()) -- 2.7.4