Skip to content

Commit

Permalink
Add protection against autoload from alternative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Aug 9, 2024
1 parent 35286c8 commit 9733e24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gems/aws-sdk-core/lib/aws-sdk-sso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#
# WARNING ABOUT GENERATED CODE

if Aws.autoload?(:SSO)
Aws.autoload(:SSO, __FILE__)
end

unless Module.const_defined?(:Aws)
require 'aws-sdk-core'
Expand Down
3 changes: 3 additions & 0 deletions gems/aws-sdk-core/lib/aws-sdk-ssooidc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#
# WARNING ABOUT GENERATED CODE

if Aws.autoload?(:SSOOIDC)
Aws.autoload(:SSOOIDC, __FILE__)
end

unless Module.const_defined?(:Aws)
require 'aws-sdk-core'
Expand Down
3 changes: 3 additions & 0 deletions gems/aws-sdk-core/lib/aws-sdk-sts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#
# WARNING ABOUT GENERATED CODE

if Aws.autoload?(:STS)
Aws.autoload(:STS, __FILE__)
end

unless Module.const_defined?(:Aws)
require 'aws-sdk-core'
Expand Down

0 comments on commit 9733e24

Please sign in to comment.