cncflora_commons 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cncflora_commons.rb +3 -3
- metadata +1 -1
data/lib/cncflora_commons.rb
CHANGED
@@ -87,9 +87,9 @@ def setup(file)
|
|
87
87
|
}
|
88
88
|
}
|
89
89
|
|
90
|
-
if
|
91
|
-
etcd_cfg = etcd2config(
|
92
|
-
onchange(
|
90
|
+
if ENV["ETCD"] || @config["etcd"] then
|
91
|
+
etcd_cfg = etcd2config(ENV["ETCD"] || @config["etcd"])
|
92
|
+
onchange(ENV["ETCD"] || @config["etcd"]) do |newconfig|
|
93
93
|
newconfig.each {|k,v| @config[k] = v }
|
94
94
|
if defined? settings then
|
95
95
|
newconfig.each {|k,v| set k.to_sym,v }
|