return
with open(os.path.join(reports, 'index.html'), 'w') as fp:
fp.write(content)
- sync(sync_out, os.path.join(os.getenv('IMG_SYNC_DEST_BASE'), repo_path))
+ return sync(sync_out, os.path.join(os.getenv('IMG_SYNC_DEST_BASE'), \
+ repo_path))
def main():
"""The main body"""
context['images'].pop(item['name'])
# sync all
- sync_world('index.html', repo_name, repo_path, **context)
+ return sync_world('index.html', repo_name, repo_path, **context)
if __name__ == '__main__':
sys.exit(main())