fog-softlayer 0.3.19 → 0.3.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmQ4MTBjNjE4MjkxYTM2ZGIwYjAyMTM5OTYzNzBlOGUxMTExOTZmMw==
4
+ YmFkNzcyMWQ3ZGQxMmIxZDVlZWRkZWFiMjgzMmM4ZjgxMDQ4Nzg0OQ==
5
5
  data.tar.gz: !binary |-
6
- YjQxM2I2OGQzZmM1ZGU0OGE3ODMwYjhmM2YwYmMyMGIyMzRmMmFmNA==
6
+ OWQ5Nzk5YjdhMDhhZjNlNzViZjI1OGNkNTBkNWRlYWQxMTQ1MTA3ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGJhZTdlYmUwMjEwOGZhNjZkMmJjMGE3MTZlN2YxYzIyYjMwYzJiNmM1Njc5
10
- NTZmMTMzZTllNWVjMDNmM2RhOWFmMGNmMGEzNzhiNDY5YTAzNGUyODE2Mzlh
11
- YWViNjIxYzkwYzIyYTg5Y2FkNDY2ODViNmRkMzgxODNlNjFhNDI=
9
+ MTM1ODk4MmM4MzAxZWViNTk1NzczYzA2Y2U4NGFkNGEyNTM3ZjRiNmI5MTYx
10
+ ZTdjYmI0Yzk5OTYzMDIyMWNkNjY4NGNlOTAyN2UxNjAyOWQxNDI5N2Q1ZGI2
11
+ NTE0OGRjMzJkODRkZmEyMWYwMjJlMWI0M2VkYzFmZmZhMGE2MTk=
12
12
  data.tar.gz: !binary |-
13
- ZmJlNGY4NGIwZGQyYmE3MjQ3MTUzZTFjNDEwODcyZGUwOTE0ZDVmNTAxYjdj
14
- Mjc2MTMxYWUwNjBjM2RmYWM0MGZjNTdkZDlhY2FiN2UxYTJkZDVlOGYxMWI2
15
- NTY4ZDljNjM5YjkyMGY1MWQ4YWIxNDMzY2M5NGEwMTkzMTBlNWE=
13
+ NGYzOWQ2ZWIxYjMzYjlhYWIxOTM3N2Y2YjRkYTVlZGRlMThlNWYxNzE1ZDcx
14
+ MTcwZDUwNDUwNTllOTA3NGNkMzExMDcyZDQ3NDY3ZWQxMTNkOGFiZGVlMDY0
15
+ ODcwNGFmNzczNDdiMzA3MjRmMTFmYjMwOWMwOWE0OTlkNmUwMTY=
@@ -32,5 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency('shindo', '~> 0.3.4')
33
33
  spec.add_development_dependency('fission')
34
34
  spec.add_development_dependency('pry')
35
+ spec.add_development_dependency('pry-debugger')
35
36
  spec.add_development_dependency('osrcry')
36
37
  end
@@ -59,7 +59,14 @@ module Fog
59
59
  body = options[:body]
60
60
  end
61
61
 
62
- params[:body] = Fog::JSON.encode({:parameters => [body]}) unless options[:body].nil?
62
+ unless options[:body].nil?
63
+ # SLAPI reloadOperatingSystem appears to want a different format for the body than any other method...
64
+ if path =~ /reload/i and path =~ /operating/i and path =~ /system/i
65
+ params[:body] = Fog::JSON.encode({:parameters => body})
66
+ else
67
+ params[:body] = Fog::JSON.encode({:parameters => [body]})
68
+ end
69
+ end
63
70
  params[:query] = options[:query] unless options[:query].nil?
64
71
 
65
72
  # initialize connection object
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.19"
10
+ VERSION = "0.3.20"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-debugger
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: osrcry
169
183
  requirement: !ruby/object:Gem::Requirement