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:
parent
d881ee6006
commit
0e9344b19a
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ module Fog
|
||||||
options['Type'] ||= type
|
options['Type'] ||= type
|
||||||
data = connection.list_resource_record_sets(zone.id, options).body
|
data = connection.list_resource_record_sets(zone.id, options).body
|
||||||
merge_attributes(data.reject {|key, value| !['IsTruncated', 'MaxItems', 'NextRecordName', 'NextRecordType'].include?(key)})
|
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
|
end
|
||||||
|
|
||||||
def get(record_id)
|
def get(record_id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue