fog-softlayer 0.3.10 → 0.3.11

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
- Mjk1ZTE3NWIzYTg1NjA2ZjhlNGEzNjA3ZGYzYjE5YWU1OTg5ZGEwMg==
4
+ NWViYzVmZGQ4ZWMyNmNmZDhiYTY4ZmRkYzc5ZDQ1YzkyMzVjZDIzYg==
5
5
  data.tar.gz: !binary |-
6
- ZjQ0YjRhZGYwNDQ5NjI0ZGQxZWQwZDJiMjA4YjYxNmQ3MWZhOWU5MQ==
6
+ MDJlNDEzZjU1NDBkNTkwZDI0YjliYjUxNTdmMWI5NzY5Yjg5YjMwNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDU0NzA2ZjAxNjVlNWYwMWM1YWMwZDAyMGRmMzNmZjdhY2NlYmU3Y2E5Mjlj
10
- OWQ4OTc2M2M3MGY0NDEzZjU1NjEzZjdiMDU0MGM3NTQ1MTlhYjg1NDA1M2M4
11
- NmJiNGRhOTRkYWViMzY0OWM4Njk3Nzg4YjdmNTczNjVhMThjMTQ=
9
+ ZjU2ZTU3OWYxYTU5YzVkYjhmNDcxYjIzOGU2NmZiYTM3ZWZjMTIwN2E2N2M3
10
+ NDA5MWZiMTllMDAzMDkzZjZlYmRlMjI2MmYyMjdmNGJhNzE3MjQzMmY1Nzc4
11
+ ODYxZmVkZDg1Njk4NWNmYzU3MGY2OTExYjY5OTFiMWQyNDRkODQ=
12
12
  data.tar.gz: !binary |-
13
- MzMyODY1MWVmNjU3ZjcyYzJkN2IzMWM0ZGE3NzVlMWFmMzJlZmM2ZDgzYWE5
14
- YzM0YWEyZjhmZGY4ZTVjZjRjMzVmNTFhYjg4MTBlMjk4Zjk5OGFjNzZjYjMz
15
- YzMzNDg2ZGFkZjk4OTA3OTkzY2YxNTg2Yzg1ZDI1NGE0MGQzMzI=
13
+ ZGM4NWJjN2U5ZDMwYTVmYWI4ODMzNzg2ZmU4NTgxNTFjYjIxOGU1Mjg3ODkz
14
+ MjRiNTQzYjRhZDJhOTkzM2JlMTY0ZWI5MWI5MGE3ZWU3OWQ4ZjNiNjE2ZTM4
15
+ MjAyODA2NzBhYTlmYjcxODFmYWE2YjQyNzk2NDZkMDkxYWViNjI=
@@ -196,7 +196,10 @@ module Fog
196
196
  end
197
197
 
198
198
  def ssh_password
199
- self.os['passwords'][0]['password'] if self.id
199
+ requires :id
200
+ service_path = bare_metal? ? :hardware_server : :virtual_guest
201
+ @sshpass ||= service.request(service_path, id, :query => 'objectMask=mask[id,operatingSystem.passwords[password]]').body
202
+ @sshpass['operatingSystem']['passwords'][0]['password'] unless @sshpass['operatingSystem'].nil? or @sshpass['operatingSystem']['passwords'].empty?
200
203
  end
201
204
 
202
205
  def snapshot
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.10"
10
+ VERSION = "0.3.11"
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.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge