fog-softlayer 0.3.17 → 0.3.18
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 +11 -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
|
+
MmUyMjNkNzQwZTQ4ZmQzODlkMTk3OTA0NmViMGFjZjI2ZmI2OTgwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTFhMjRkYmQwNzIyODhjMjNjMGM5N2RlMmQ3ZTQwMmEyMTZiYTg5Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjIzYmU4ZjM0ZDgwYzk2ODA5N2NkNzI3OGRhYjY5ZWVhM2FjNWY0ODIzNDIz
|
10
|
+
MTNmMThlOTg0NTczNTcxNjg5YmFjMzlhZDA4ZWRlZTc5M2YyNWIxNTVlYWIy
|
11
|
+
MDYxZmJkZjQxMTRlMzEwNTM0YWMwOGUxNjJkY2ZmNDE3OGFlZmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjhkOTY2ZWJhZDk4YzEzYmFmMzg4NjU2Yzg2NWQzOTc0Y2Y3ZmI5Y2FiMzFh
|
14
|
+
OWFkZjk2ZWY1MTcxM2IwMDhkNjlmZTczZGNiMGIzNzUwYWViYjRlOTNhYjQw
|
15
|
+
OWUyODUxMTU0ZDNiYjcxMDM0M2JhMGM1NTFjZWU0YzI4MzQ2MjI=
|
data/lib/fog/softlayer/core.rb
CHANGED
@@ -49,7 +49,17 @@ 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
|
-
|
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
|
+
|
62
|
+
params[:body] = Fog::JSON.encode({:parameters => body}) unless options[:body].nil?
|
53
63
|
params[:query] = options[:query] unless options[:query].nil?
|
54
64
|
|
55
65
|
# initialize connection object
|