Skip to content

Commit

Permalink
Update libraries/ec2.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Corey Hemminger <hemminger@hotmail.com>
  • Loading branch information
achinthagunasekara and Stromweld authored Oct 14, 2024
1 parent 5132850 commit fc9cca4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ def fallback_region

# setup AWS instance using passed creds, iam profile, or assumed role
def create_aws_interface(aws_interface, **opts)
use_fips_endpoint = false
if opts.key?(:use_fips_endpoint)
use_fips_endpoint = opts[:use_fips_endpoint]
end
use_fips_endpoint = opts.key?(:use_fips_endpoint) ? opts[:use_fips_endpoint] : false
aws_interface_opts = { region: opts[:region],
http_proxy: ENV['http_proxy'],
use_fips_endpoint: use_fips_endpoint }
Expand Down

0 comments on commit fc9cca4

Please sign in to comment.