Commit 11ffa98 1 parent 1a52852 commit 11ffa98 Copy full SHA for 11ffa98
File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
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.20.1...HEAD
6
6
7
+ ### Changed
8
+
9
+ - Setting the S3 URL into the journal when stored
10
+
7
11
## [ 0.20.1] [ ] - 2022-07-11
8
12
[ 0.20.1 ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.20.0...0.20.1
9
13
Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ def after_experiment_control(
69
69
70
70
path = f"{ dirpath } /journal{ suffix } .{ ext } "
71
71
72
+ # setting the absolute url of the uploaded journal into the journal itself
73
+ region = configuration .get ("aws_region" )
74
+ url = f"https://{ bucket_name } .s3.{ region } .amazonaws.com/{ dirpath } /{ path } "
75
+ extra = state .setdefault ("extra" , {})
76
+ extra_journal = extra .setdefault ("journal" , {})
77
+ extra_journal ["url" ] = url
78
+
72
79
with NamedTemporaryFile () as fd :
73
80
fd .write (state .encode ("utf-8" ))
74
81
fd .seek (0 )
You can’t perform that action at this time.
0 commit comments