@@ -968,7 +968,7 @@ def create_bucket(self, Bucket, **kwargs):
968968 method = 'PUT' ,
969969 url = url ,
970970 bucket = Bucket ,
971- auth = CosS3Auth (self ._conf . _secret_id , self . _conf . _secret_key ),
971+ auth = CosS3Auth (self ._conf ),
972972 headers = headers )
973973 return None
974974
@@ -997,7 +997,7 @@ def delete_bucket(self, Bucket, **kwargs):
997997 method = 'DELETE' ,
998998 url = url ,
999999 bucket = Bucket ,
1000- auth = CosS3Auth (self ._conf . _secret_id , self . _conf . _secret_key ),
1000+ auth = CosS3Auth (self ._conf ),
10011001 headers = headers )
10021002 return None
10031003
@@ -1242,7 +1242,7 @@ def head_bucket(self, Bucket, **kwargs):
12421242 method = 'HEAD' ,
12431243 url = url ,
12441244 bucket = Bucket ,
1245- auth = CosS3Auth (self ._conf . _secret_id , self . _conf . _secret_key ),
1245+ auth = CosS3Auth (self ._conf ),
12461246 headers = headers )
12471247 return None
12481248
@@ -2114,7 +2114,7 @@ def list_buckets(self, **kwargs):
21142114 url = url ,
21152115 bucket = None ,
21162116 headers = headers ,
2117- auth = CosS3Auth (self ._conf . _secret_id , self . _conf . _secret_key ),
2117+ auth = CosS3Auth (self ._conf ),
21182118 )
21192119 data = xml_to_dict (rt .content )
21202120 if data ['Buckets' ] is not None and not isinstance (data ['Buckets' ]['Bucket' ], list ):
0 commit comments