fog-softlayer 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/softlayer/models/compute/server.rb +7 -5
- data/lib/fog/softlayer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4653fea3f18009d860e8472c3c0a30a94888b628
|
4
|
+
data.tar.gz: 91e26288c27c6990a36b2a435def63e05c13a63a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6e003eb7e9bd6452f02f8d7ceccdb5b81e6e6b30d2239b67a203b2f2105072d4c4ed25adc957e47362d6e324ad2e8b182e9571e04a4dd629f56ec5110f1480
|
7
|
+
data.tar.gz: 06d9e733a5f5b60041b6c7ecb33abd1fb8441261151466ff26ab50e1c0444999fe3043d118f465968c4b9e4161df77b47590a6d25c9f9e82cb9c536a43a7c5ee
|
@@ -186,11 +186,13 @@ module Fog
|
|
186
186
|
raise ArgumentError, "Argument #{local_variables.first.to_s} for #{self.class.name}##{__method__} must be Array." unless keys.is_a?(Array)
|
187
187
|
attributes[:key_pairs] = []
|
188
188
|
keys.map do |key|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
189
|
+
## This was nice but causing an intolerable number of requests on an account with lots of keys.
|
190
|
+
## ToDo: something better...
|
191
|
+
#key = self.symbolize_keys(key) if key.is_a?(Hash)
|
192
|
+
#unless key.is_a?(Fog::Compute::Softlayer::KeyPair) or (key.is_a?(Hash) and key[:id])
|
193
|
+
# raise ArgumentError, "Elements of keys array for #{self.class.name}##{__method__} must be a Hash with key 'id', or Fog::Compute::Softlayer::KeyPair"
|
194
|
+
#end
|
195
|
+
#key = service.key_pairs.get(key[:id]) unless key.is_a?(Fog::Compute::Softlayer::KeyPair)
|
194
196
|
attributes[:key_pairs] << key
|
195
197
|
end
|
196
198
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-softlayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Eldridge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -441,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
441
441
|
version: '0'
|
442
442
|
requirements: []
|
443
443
|
rubyforge_project:
|
444
|
-
rubygems_version: 2.
|
444
|
+
rubygems_version: 2.5.1
|
445
445
|
signing_key:
|
446
446
|
specification_version: 4
|
447
447
|
summary: This library can be used as a module for `fog` or as standalone provider
|