etcd-discovery 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/etcd-discovery/host.rb +3 -3
- 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: 8dc8602877ee8e5839d2bf7e884d297b81a6a3a0
|
4
|
+
data.tar.gz: 25970b96822152e47e5cd65ae041849c257d9f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4037f9383960585589d04fac8510baf937ce9627856bc2bcbf7a8b90b5f3a2f7c250044444bad9a0a9abe7741b91d4c298f941f757928af43b14968e7eeb77b2
|
7
|
+
data.tar.gz: 79a9cff17c8d9fa91d7697511a553f05a86debbe3156b51effb21d165ac9164b56341a33868fd3a475d59de4a00546902de5bc5aad4e3cecae0968e0b0cd2e0e
|
data/lib/etcd-discovery/host.rb
CHANGED
@@ -16,9 +16,9 @@ module EtcdDiscovery
|
|
16
16
|
if !attributes.has_key? 'name' or !attributes.has_key? 'port'
|
17
17
|
raise InvalidHost, "attributes 'name' and 'port' should be defined"
|
18
18
|
end
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
attributes['user'] = "" if attributes['user'].nil?
|
20
|
+
attributes['password'] = "" if attributes['password'].nil?
|
21
|
+
attributes['scheme'] = "http" if attributes['scheme'].nil?
|
22
22
|
end
|
23
23
|
|
24
24
|
def to_json
|