1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Allow case-insensitive record comparison

This commit is contained in:
Matt 2016-06-13 14:58:46 -05:00 committed by GitHub
parent 5e463ed627
commit 84946b44c5

View file

@ -93,7 +93,7 @@ module Fog
(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