-
Notifications
You must be signed in to change notification settings - Fork 898
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
Reduce the number of gems for AWS SDK usage #19436
Conversation
Checked commit Fryguy@0d7fd06 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@@ -29,6 +29,8 @@ gem "activerecord-virtual_attributes", "~>1.4.0" | |||
gem "activerecord-session_store", "~>1.1" | |||
gem "acts_as_tree", "~>2.7" # acts_as_tree needs to be required so that it loads before ancestry | |||
gem "ancestry", "~>3.0.7", :require => false | |||
gem "aws-sdk-ec2", "~>1.0", :require => false # For FileDepotS3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fryguy FileDepotS3
shouldn't need ec2
though, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this seems wrong:
manageiq/app/models/file_depot_s3.rb
Lines 65 to 69 in b5c6cd2
def translate_exception(err) | |
require 'aws-sdk-ec2' | |
case err | |
when Aws::EC2::Errors::SignatureDoesNotMatch |
Going to investigate...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's possible that the code just used Aws::EC2::Errors, but those errors are available elsewhere (perhaps in Aws::S3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I have created a PR to address this here:
Pretty sure the DynamicErrors
should be defining these under the Aws::S3
name space, but wouldn't mind a second set of eyes.
@agrare Please review.
Should be merged along with: