SR-SYNC: Rename env parameter
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 9 Aug 2017 10:59:10 +0000 (19:59 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 9 Aug 2017 10:59:10 +0000 (19:59 +0900)
Change-Id: Ia2050436fb97ddb4d4f3801568a304d34456e175

job_trigger_for_sync_repo.py

index f0ce65a..41b995b 100644 (file)
@@ -188,7 +188,7 @@ class trigger_for_sync_repo(object):
             print('-----[trigger sync_repo job for {} ]-----'.format(profile['snapshot_version']))
 
             # SR-SYNC trigger
-            if os.getenv('SUBMIT_REQUEST_SYNC_ENABLED', '0') == '1':
+            if os.getenv('SR_SYNC_ENABLED', '0') == '1':
                 trigger_next('SUBMIT_REQUEST_SYNC_{}'.format(profile['snapshot_version']), \
                              profile, \
                              extra_params={'UPSTREAM_OBS_PROJECT': profile['project'], \