Commit 7386f90 1 parent d653133 commit 7386f90 Copy full SHA for 7386f90
File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ def __init__(
73
73
# Initialized connection to S3 storage
74
74
self .s3 = boto3 .client (** self .boto3_client_kwargs )
75
75
self .backends = [S3Backend (self .bucket_name , ** self .boto3_client_kwargs )]
76
+
77
+ if s3_access_key_id != "" :
78
+ self .is_configed = True
79
+ else :
80
+ self .is_configed = False
76
81
77
82
def _run_meta_path (self , run_id : str ) -> str :
78
83
"""Generate the metadata file path for a given run ID.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def test_write_data_s3(self):
36
36
self .st .storage = [strax .S3Frontend (self .path )]
37
37
run_id = "0"
38
38
self .st .make (run_id , self .target )
39
- if self .st .storage . s3_access_key_id != None :
39
+ if self .st .storage [ 0 ]. is_configed != "" :
40
40
assert self .st .is_stored (run_id , self .target )
41
41
else :
42
42
pass
You can’t perform that action at this time.
0 commit comments