lib/rubber/dns/aws.rb in rubber-2.0.8 vs lib/rubber/dns/aws.rb in rubber-2.1.0

- old
+ new

@@ -131,10 +131,10 @@ zone = find_or_create_zone(opts[:domain]) host = opts_to_host(opts) if opts[:host] && opts[:host] != '*' found_host = zone.records.all(:name => host[:name], :type => host[:type], :max_items => 1).first - found_host = nil if found_host.name != "#{host[:name]}." && found_host.type != host[:type] + found_host = nil if found_host && found_host.name != "#{host[:name]}." && found_host.type != host[:type] hosts = Array(found_host) else hosts = all_hosts(zone) end