未验证 提交 53477b97 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

add sts for bos (#736)

上级 7633c5a5
......@@ -218,9 +218,10 @@ class BosFileSystem(object):
raise KeyError('${BOS_SK} is not found.')
self.max_contents_count = int(os.getenv('BOS_CACHE_COUNT', 1))
self.max_contents_time = int(os.getenv('BOS_CACHE_TIME', 1))
bos_sts = os.getenv("BOS_STS")
self.config = BceClientConfiguration(
credentials=BceCredentials(access_key_id, secret_access_key),
endpoint=bos_host)
endpoint=bos_host, security_token=bos_sts)
def isfile(self, filename):
return exists(filename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册