This repository was archived by the owner on Jun 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11project :
22 name : cloud-janitor
3- version : 1.5.0
3+ version : 1.6.5
44 description : Cloud Janitor
55 longDescription : Automating cleanup, maintenance and troubleshooting tasks in Cloud Computing
66 links :
Original file line number Diff line number Diff line change 55 <groupId >caravanacloud</groupId >
66 <artifactId >cloud-janitor</artifactId >
77 <!-- Also change CloudJanitor.VERSION and jreleaser.yml -->
8- <version >1.5.0 </version >
8+ <version >1.6.5 </version >
99
1010 <description >Automating cleanup, maintenance and troubleshooting tasks in Cloud Computing</description >
1111 <url >https://github.com/CaravanaCloud/cloud-janitor</url >
Original file line number Diff line number Diff line change @@ -234,7 +234,12 @@ public void submitAll(List<Task> delegates) {
234234 }
235235
236236 public Optional <String > inputString (Input key ) {
237- return input (key ).map (Object ::toString );
237+ var value = input (key );
238+ var result = value .map (Object ::toString );
239+ if ("bucketPolicy" .equals (key .toString ())){
240+ System .out .println ();
241+ }
242+ return result ;
238243 }
239244
240245 public Object output (Output key , Object value ) {
Original file line number Diff line number Diff line change 1313
1414@ ApplicationScoped
1515public class CloudJanitor implements QuarkusApplication {
16- public static final String VERSION = "1.5.0 " ;
16+ public static final String VERSION = "1.6.5 " ;
1717 @ Inject
1818 Logger log ;
1919
Original file line number Diff line number Diff line change @@ -53,8 +53,10 @@ private void getOrCreateBucket(String bucketName) {
5353 }else {
5454 debug ("Data bucket not found {}. Creating..." , bucketName );
5555 var policy = inputString (bucketPolicy );
56- var task = createBucket .withInput (targetBucketName , bucketName )
57- .withInput (AWSInput .bucketPolicy , policy );
56+ var task = createBucket .withInput (targetBucketName , bucketName );
57+ if (policy .isPresent ()){
58+ task = task .withInput (AWSInput .bucketPolicy , policy .get ());
59+ }
5860 submit (task );
5961 debug ("Checking if bucket was created" );
6062 bucket = getBucket (bucketName );
You can’t perform that action at this time.
0 commit comments