rancher-metadata 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rancher-metadata/api.rb +5 -1
- data/lib/rancher-metadata/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: 49379fde6d14d508331cdf11c53bd148c8038534
|
4
|
+
data.tar.gz: fdb7221a88ab7c5ef5c07e428e3352f8057bdbdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb0e79e3f93666aea2910727a9c93ea354dd62464775a783e60b569dabe32ddd92b97621198880b52471b175294ac3a97e973c4b32c2033fdfaca4d0901ce1d
|
7
|
+
data.tar.gz: a13e8eed22eecab20ed4119ddde9aaf108e94fb80d9af500ac071d8eb42a19af7673f3a125d33d341f226fbd624e7bb8e597403c744a5a02e85ad56fe1718ba8
|
data/lib/rancher-metadata/api.rb
CHANGED
@@ -17,7 +17,11 @@ module RancherMetadata
|
|
17
17
|
:max_attempts => 3
|
18
18
|
}
|
19
19
|
|
20
|
-
|
20
|
+
if config.has_key?(:api_url)
|
21
|
+
config[:api_url] = [ config[:api_url] ] unless config[:api_url].is_a?(Array)
|
22
|
+
|
23
|
+
raise("Must pass one or more API endpoints") unless config[:api_url].size > 0
|
24
|
+
end
|
21
25
|
|
22
26
|
@config = defaults.merge(config)
|
23
27
|
end
|