Sha256: c6f63c29641e52b6eb280f66d83099fe560674c01507c0d911d08b543b6767a2
Contents?: true
Size: 692 Bytes
Versions: 21
Compression:
Stored size: 692 Bytes
Contents
module Fog module Compute class Vsphere class Real def list_vm_scsi_controllers(vm_id) list_vm_scsi_controllers_raw(vm_id).map do |raw_controller| Fog::Compute::Vsphere::SCSIController.new(raw_controller) end end def list_vm_scsi_controllers_raw(vm_id) get_vm_ref(vm_id).config.hardware.device.grep(RbVmomi::VIM::VirtualSCSIController).map do |ctrl| { :type => ctrl.class.to_s, :shared_bus => ctrl.sharedBus.to_s, :unit_number => ctrl.scsiCtlrUnitNumber, :key => ctrl.key, } end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems