blackstack-nodes 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blackstack-nodes.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b715095e772fb75530a3e4340f703a8581b6784f3596cfa412a7528fbd2a865
|
4
|
+
data.tar.gz: ce11f94afead91279cd7e5e1a793c8030c42bfc17f35dee3a5806d4e56460b29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 277fd5c174de605aca61735767fcdfbd3643b48663cef5132a4d08c94d5a654374fac6c86c003f98632e55f2eefeab19a23c801e7b7cf3df9b67f0b7b17701da
|
7
|
+
data.tar.gz: 9f068a0b5852259d7e5c79a1f1e1c3647b53bcbdea66d8f1b0c05361629cbe88872cdace540bf14dec94685c268823bccea6f2561895fe04ee5c6060ea82222c
|
data/lib/blackstack-nodes.rb
CHANGED
@@ -23,9 +23,6 @@ module BlackStack
|
|
23
23
|
# validate: the parameter h[:name] is a string
|
24
24
|
errors << "The parameter h[:name] is not a string" unless h[:name].is_a?(String)
|
25
25
|
|
26
|
-
# validate: does not exist any other element in @@nodes with the same value for the parameter h[:name]
|
27
|
-
errors << "The parameter h[:name] is not unique" if @@nodes.select{|n| n[:name] == h[:name]}.length > 0
|
28
|
-
|
29
26
|
# validate: the paramerer h has a key :net_remote_ip
|
30
27
|
errors << "The parameter h does not have a key :net_remote_ip" unless h.has_key?(:net_remote_ip)
|
31
28
|
|