globodns_client 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/globodns_client/connection.rb +1 -1
- data/lib/globodns_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c19b8aa381e3e5e80fffa070ca50e077449d53f8
|
4
|
+
data.tar.gz: bf5db99934195821f1aa9273aa2424f7f9f368fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 843ebd4316c6212f30e929d4425c2d9c72db26ef961f06bf56252748c129f27a52aee50e679ccf77685a377813db4f609c5fdc1a6f9969d0585a0fd0de144884
|
7
|
+
data.tar.gz: 4eb2200f9b2d3a3548e71162f72751b9bf086e82b9b9612d2078c3e7948fcb76b2e25bea516b8bb962e817ca3474cd88ae0918772227776febabb21d1c685eec
|
@@ -80,7 +80,7 @@ module GlobodnsClient
|
|
80
80
|
a_records = get_record(key, 'A', zone)
|
81
81
|
case kind
|
82
82
|
when 'A'
|
83
|
-
raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists with reference (#{a_records[0][:content]})" if (a_records
|
83
|
+
raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists with reference (#{a_records[0][:content]})" if (a_records and a_records.collect{|r| r[:content]}.include? value)
|
84
84
|
when 'CNAME'
|
85
85
|
cname_records = get_record(key, 'CNAME', zone)
|
86
86
|
raise GlobodnsClient::AlreadyExists, "Item (#{key}) already exists" if a_records or cname_records
|