diff options
Diffstat (limited to 'lib/powerdnsex/models/record.ex')
-rw-r--r-- | lib/powerdnsex/models/record.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/powerdnsex/models/record.ex b/lib/powerdnsex/models/record.ex index ed0e327..b73cd98 100644 --- a/lib/powerdnsex/models/record.ex +++ b/lib/powerdnsex/models/record.ex @@ -20,8 +20,8 @@ defmodule PowerDNSex.Models.Record do end def find(records, attrs) when is_list(records) do - Enum.find(records, fn(record) -> - Enum.all?(attrs, fn({attr, attr_value}) -> + Enum.find(records, fn record -> + Enum.all?(attrs, fn {attr, attr_value} -> Map.get(record, attr) == attr_value end) end) |