diff options
author | Rodrigo Coutinho <digao@osfeio.com> | 2017-11-28 14:40:01 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 14:40:01 -0200 |
commit | dee09302a5a66186f2165e72e559428f3e5d492d (patch) | |
tree | 66120eb5af193f10c1084d05cbc0ea205e68238b | |
parent | Merge pull request #7 from thehunmonkgroup/usage-examples (diff) | |
parent | Pass cananocial name when updating records (diff) |
Merge pull request #6 from thehunmonkgroup/master
Pass cananocial name when updating records
-rw-r--r-- | lib/powerdnsex/managers/records_manager.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/powerdnsex/managers/records_manager.ex b/lib/powerdnsex/managers/records_manager.ex index 9bc3510..c5dd051 100644 --- a/lib/powerdnsex/managers/records_manager.ex +++ b/lib/powerdnsex/managers/records_manager.ex @@ -21,7 +21,7 @@ defmodule PowerDNSex.Managers.RecordsManager do end def update(%Zone{} = zone, %{name: rrset_name, type: rrset_type} = rrset_attrs) do - rrset_find_params = %{name: "#{rrset_name}.#{zone.name}", type: rrset_type} + rrset_find_params = %{name: rrset_name, type: rrset_type} rrset = RRSet.find(zone.rrsets, rrset_find_params) if rrset do |