lib/rubber/dns/fog.rb in rubber-2.0.0.pre9 vs lib/rubber/dns/fog.rb in rubber-2.0.0.pre10
- old
+ new
@@ -33,10 +33,10 @@
host[:priority] = opts[:priority] if opts[:priority]
return host
end
def find_or_create_zone(domain)
- zone = @client.zones.all.find {|z| z.domain =~ /#{domain}\.?/}
+ zone = @client.zones.all.find {|z| z.domain =~ /^#{domain}\.?/}
if ! zone
zone = @client.zones.create(:domain => domain)
end
return zone
end