Skip to content

Commit

Permalink
Merge pull request #258 from mpick92/master
Browse files Browse the repository at this point in the history
Allow case-insensitive record comparison
  • Loading branch information
lanej authored Jun 15, 2016
2 parents 87523a9 + 84946b4 commit 73d4999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/aws/models/dns/records.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get(record_name, record_type = nil, record_identifier = nil)
(data['ResourceRecordSets'] || []).map do |record_data|
record = new(record_data)

if (record.name == record_name) &&
if (record.name.casecmp(record_name) == 0) &&
(record_type.nil? || (record.type == record_type)) &&
(record_identifier.nil? || (record.set_identifier == record_identifier))
record
Expand Down

0 comments on commit 73d4999

Please sign in to comment.