mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[cloudstack] Add reset_password for server
This commit is contained in:
parent
a487abd1e4
commit
4bb21da95b
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ module Fog
|
|||
service.volumes.all('virtualmachineid' => id)
|
||||
end
|
||||
|
||||
def reset_password
|
||||
requires :id
|
||||
data = service.reset_password_for_virtual_machine(id)
|
||||
service.jobs.new(data['resetpasswordforvirtualmachineresponse'])
|
||||
end
|
||||
|
||||
def public_ip_addresses
|
||||
if public_ip_address.nil? then [public_ip_address] else [] end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue