Sha256: 4b30c9614b05b66cd366268d395508d5e34614e61ec2ef394683c33fbb76c637
Contents?: true
Size: 589 Bytes
Versions: 6
Compression:
Stored size: 589 Bytes
Contents
module Fog module Vsphere class Compute class Real def get_vm_first_sata_controller(vm_id) ctrl = get_vm_ref(vm_id).config.hardware.device.find { |device| device.is_a?(RbVmomi::VIM::VirtualAHCIController) } raise(Fog::Vsphere::Compute::NotFound) unless ctrl { type: ctrl&.class.to_s, device_info: ctrl&.deviceInfo, bus_number: ctrl&.busNumber, key: ctrl&.key } end end class Mock def get_vm_first_sata_controller(vm_id); end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems