Skip to content

Commit

Permalink
[FINE] Do not downcase the amazon IAM username
Browse files Browse the repository at this point in the history
(manually picked from ManageIQ/manageiq-providers-amazon@3a2408b)

The code has been refactored on the master branch. It has been moved to
the https://github.com/ManageIQ/manageiq-providers-amazon repository.

The master PR for this change is:
ManageIQ/manageiq-providers-amazon#296

This commit addresses:
https://bugzilla.redhat.com/show_bug.cgi?id=1489596
  • Loading branch information
jvlcek committed Sep 8, 2017
1 parent 9e33806 commit 31cc021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/models/authenticator/amazon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,9 @@ def aws_connect(access_key_id, secret_access_key, service = :IAM, proxy_uri = ni
:log_formatter => Aws::Log::Formatter.new(Aws::Log::Formatter.default.pattern.chomp)
)
end

def normalize_username(username)
username
end
end
end
4 changes: 2 additions & 2 deletions spec/models/authenticator/amazon_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'aws-sdk'

describe Authenticator::Amazon do
AWS_ROOT_USER_KEY = 'aws_root_key'
AWS_IAM_USER_KEY = 'aws_iam_key'
AWS_ROOT_USER_KEY = 'aws_root_key'.freeze
AWS_IAM_USER_KEY = 'AWS_IAM_KEY'.freeze

subject { Authenticator::Amazon.new(config) }

Expand Down

0 comments on commit 31cc021

Please sign in to comment.