Commit bd0f512 1 parent 7d271d9 commit bd0f512 Copy full SHA for bd0f512
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 4
4
5
5
[ Unreleased ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.21.1...HEAD
6
6
7
+ ### Fixed
8
+
9
+ - fixed ` chaosaws.s3.controls.upload ` region for url
10
+
7
11
## [ 0.21.1] [ ] - 2022-07-12
8
12
[ 0.21.1 ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.21.0...0.21.1
9
13
Original file line number Diff line number Diff line change @@ -64,10 +64,11 @@ def after_experiment_control(
64
64
ts = datetime .utcnow ().replace (tzinfo = timezone .utc ).isoformat ()
65
65
suffix = f"-{ ts } "
66
66
67
+ dirpath = dirpath .rstrip ("/" )
67
68
path = f"{ dirpath } /journal{ suffix } .{ ext } "
68
69
69
70
# setting the absolute url of the uploaded journal into the journal itself
70
- region = configuration . get ( "aws_region" )
71
+ region = client . meta . region_name
71
72
url = f"https://{ bucket_name } .s3.{ region } .amazonaws.com/{ dirpath } /{ path } "
72
73
extra = state .setdefault ("extra" , {})
73
74
extra_journal = extra .setdefault ("journal" , {})
You can’t perform that action at this time.
0 commit comments