diff --git a/lib/fog/cloudstack/models/compute/server.rb b/lib/fog/cloudstack/models/compute/server.rb index 49fe95b6b..1870ae48a 100644 --- a/lib/fog/cloudstack/models/compute/server.rb +++ b/lib/fog/cloudstack/models/compute/server.rb @@ -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