Class: Fog::Compute::XenServer::Console

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/xenserver/models/compute/console.rb

Instance Method Summary collapse

Instance Method Details

#vmObject



18
19
20
21
22
23
24
25
# File 'lib/fog/xenserver/models/compute/console.rb', line 18

def vm
  begin
    vm = service.servers.get __vm
  rescue Fog::XenServer::RequestFailed => e
    vm = nil
  end
  vm
end