Skip to content

Commit

Permalink
[aws|dns] omit NS and A records from listing
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Jan 13, 2011
1 parent d881ee6 commit 0e9344b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fog/dns/models/aws/records.rb
Expand Up @@ -25,7 +25,9 @@ def all(options = {})
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)
Expand Down

0 comments on commit 0e9344b

Please sign in to comment.