1
0
Fork 0
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:
German Germanovich 2014-11-08 20:22:37 +03:00
parent a487abd1e4
commit 4bb21da95b

View file

@ -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