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

[aws|dns] omit NS and A records from listing

This commit is contained in:
geemus 2011-01-13 11:51:23 -08:00
parent d881ee6006
commit 0e9344b19a

View file

@ -25,7 +25,9 @@ module Fog
options['Type'] ||= type
data = connection.list_resource_record_sets(zone.id, options).body
merge_attributes(data.reject {|key, value| !['IsTruncated', 'MaxItems', 'NextRecordName', 'NextRecordType'].include?(key)})
load(data['ResourceRecordSets'])
# leave out the default, read only records
data = data['ResourceRecordSets'].reject {|record| ['NS', 'SOA'].include?(record['Type'])}
load(data)
end
def get(record_id)