Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't validate/create S3 bucket twice #540

Merged
merged 1 commit into from
Jun 8, 2017

Conversation

jervi
Copy link
Contributor

@jervi jervi commented Jun 8, 2017

new S3Config().s3StorageService(s3Client, s3Properties); calls s3StorageService.ensureBucketExists();, so no need to do it again.
Added bonus: the catch clause actually catches exceptions.

@lwander
Copy link
Member

lwander commented Jun 8, 2017

Thanks!

I have a similarish PR here: #536

Can you move the rest of the credential construction into the catch block and I'll close my PR?

`new S3Config().s3StorageService(s3Client, s3Properties);` calls `s3StorageService.ensureBucketExists();`, so no need to do it again.
Added bonus: the catch clause actually catches exceptions.
@jervi jervi force-pushed the dont_validate_s3_bucket_twice branch from 8bcb66a to cb8d4b4 Compare June 8, 2017 13:11
@lwander lwander merged commit ceb8f4f into spinnaker:master Jun 8, 2017
@jervi jervi deleted the dont_validate_s3_bucket_twice branch June 12, 2017 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants