cncflora_commons 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cncflora_commons.rb +2 -1
- metadata +1 -1
data/lib/cncflora_commons.rb
CHANGED
@@ -47,6 +47,7 @@ def http_put(uri,doc)
|
|
47
47
|
end
|
48
48
|
|
49
49
|
response = http.request(request)
|
50
|
+
|
50
51
|
JSON.parse(response.body)
|
51
52
|
end
|
52
53
|
|
@@ -82,7 +83,7 @@ def flatten(obj)
|
|
82
83
|
end
|
83
84
|
|
84
85
|
def etcd2config(server)
|
85
|
-
config = flatten( http_get("#{server}/?recursive=true")["node"] )
|
86
|
+
config = flatten( http_get("#{server}/v2/keys/?recursive=true")["node"] )
|
86
87
|
config
|
87
88
|
end
|
88
89
|
|