diff --git a/visualdl/io/bfile.py b/visualdl/io/bfile.py index dbf755347ad95a3337914b4a489aa690fd6c38cd..69927c41feae1407d55fef7b05dfda6680806fcc 100644 --- a/visualdl/io/bfile.py +++ b/visualdl/io/bfile.py @@ -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)