Problem: Recently we met "host down" exception while creating directories.
Change-Id: I0e31b087176220dbb691f933ce8b7b2ca39d3beb
profile['snapshot_version'])
if not os.path.exists(path) or force_trigger:
print('-----[trigger sync_repo job for {} ]-----'.format(profile['snapshot_version']))
- subprocess.call('mkdir -p {}'.format(path), shell=True)
-
- trigger_next('sync_repo_{}'.format(profile['name']), profile)
+ ret_val = subprocess.call('mkdir -p {}'.format(path), shell=True)
+ if int(ret_val) == 0:
+ trigger_next('sync_repo_{}'.format(profile['name']), profile)
+ else:
+ print 'You got errors. %s' % ret_val
+ return int(ret_val)
def main(self):