def upload_assets(my_settings: settings.Settings, path: str):
for tile in os.listdir(path):
if tile.endswith(".pivotal"):
print("uploading product {0}".format(tile))
cmd = "{om_with_auth} -r 3600 upload-product -p '{path}'".format(
om_with_auth=om_manager.get_om_with_auth(my_settings), path=os.path.join(path, tile))
out, err, exit_code = util.exponential_backoff_cmd(cmd)
if exit_code != 0:
return out, err, exit_code
return "", "", 0
download_and_import.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录