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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef1c90be2a086648821d7b772966151e197bb365
4
- data.tar.gz: 85e3b5c94179914dad7741467cc8db3186ba538c
3
+ metadata.gz: 4653fea3f18009d860e8472c3c0a30a94888b628
4
+ data.tar.gz: 91e26288c27c6990a36b2a435def63e05c13a63a
5
5
  SHA512:
6
- metadata.gz: 8f356fe1a6f4195bd10d660d7751235c25a14d0ec9b6eec1967fdb647bd8180708be122a5f60265557fff3ef60b50f9cef6a5f9c86f781e30c8c9932d7b35744
7
- data.tar.gz: 5cfd7eff3381a7de6ef8c37ba4951483729c641e85abbfac8f2bc030519505634c90fa885df34b71420e1f15c77ea55200a5ff55a8dbf22a2ff022fed0f5732e
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
- key = self.symbolize_keys(key) if key.is_a?(Hash)
190
- unless key.is_a?(Fog::Compute::Softlayer::KeyPair) or (key.is_a?(Hash) and key[:id])
191
- raise ArgumentError, "Elements of keys array for #{self.class.name}##{__method__} must be a Hash with key 'id', or Fog::Compute::Softlayer::KeyPair"
192
- end
193
- key = service.key_pairs.get(key[:id]) unless key.is_a?(Fog::Compute::Softlayer::KeyPair)
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
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "1.0.2"
10
+ VERSION = "1.0.3"
11
11
  end
12
12
  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.2
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: 2015-11-02 00:00:00.000000000 Z
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.2.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