fog-softlayer 0.3.21 → 0.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fog/softlayer/core.rb +3 -17
- data/lib/fog/softlayer/requests/compute/create_vm.rb +1 -1
- data/lib/fog/softlayer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDRjMGMzNTJlOWViMmI4OWYyNDEzZmYzNjFjNmEzYWE4OTQ1ZjZlYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWRhODgwN2M5MjliZGUzODNjOTRkZTNhZWE2YzkxYTQ0ODFmOTYxNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjZmOTE2YjQyYjdhNjk5NDA0NWFlMDMxYjgxNzJhZTQ1NDIyYTUxZTkxOGI0
|
10
|
+
NWMzZGE2MmQ4ZWE1NjViNDNiMTM2MjE3YzRiMGIzYTYwNjgzODU3NjkyOTRm
|
11
|
+
NDVmZmI3Njc2MzZlZTgzZjEwNWNmNWRlNTg2MDZjOGExZWQyNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzNiZjk5N2U5NTYwYzAzNGMwNTAwYWYwYmRlN2NhZGYyMTdkZjYyYzdiZmYy
|
14
|
+
YjhjMWVjOTM2ZjljOGFjMmM5NDQyNDI5NGI0Y2E4MWRiZmRiY2E0ZDQwZWYz
|
15
|
+
YWUxYjU2MDA1YTEzZGFiNjM5MTJlMzFiMjA4MDkxZmJkM2VlYWY=
|
data/lib/fog/softlayer/core.rb
CHANGED
@@ -49,25 +49,11 @@ module Fog
|
|
49
49
|
params = { :headers => user_agent_header }
|
50
50
|
params[:headers]['Content-Type'] = 'application/json'
|
51
51
|
params[:expects] = options[:expected] || [200,201]
|
52
|
-
|
53
|
-
if options[:body].respond_to?(:each)
|
54
|
-
body = []
|
55
|
-
options[:body].each do |item|
|
56
|
-
body.push(item)
|
57
|
-
end
|
58
|
-
else
|
59
|
-
body = options[:body]
|
60
|
-
end
|
61
|
-
|
52
|
+
params[:query] = options[:query] unless options[:query].nil?
|
62
53
|
unless options[:body].nil?
|
63
|
-
|
64
|
-
|
65
|
-
params[:body] = Fog::JSON.encode({:parameters => body})
|
66
|
-
else
|
67
|
-
params[:body] = Fog::JSON.encode({:parameters => [body]})
|
68
|
-
end
|
54
|
+
options[:body] = [options[:body]] unless options[:body].kind_of?(Array)
|
55
|
+
params[:body] = Fog::JSON.encode({:parameters => options[:body]})
|
69
56
|
end
|
70
|
-
params[:query] = options[:query] unless options[:query].nil?
|
71
57
|
|
72
58
|
# initialize connection object
|
73
59
|
@connection = Fog::Core::Connection.new(@request_url, false, params)
|