Sha256: ae71af971eac00e7b2bb7e4ded791d7e04a8a2b7fb2a86913565d87eb20f02ad

Contents?: true

Size: 902 Bytes

Versions: 3

Compression:

Stored size: 902 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Real
        def add_vm_controller(controller)
          options = {}
          options[:operation] = 'add'
          options[:type] = controller.type
          options[:key] = controller.key
          options[:shared] = controller.shared_bus

          vm_reconfig_hardware('instance_uuid' => controller.server_id, 'hardware_spec' => {'deviceChange'=>[create_controller(options)]})
        end
      end

      class Mock
        def add_vm_controller(controller)
          options = {}
          options[:operation] = 'add'
          options[:type] = RbVmomi::VIM.VirtualLsiLogicController.class
          options[:key] = 1000
          options[:shared] = false

          vm_reconfig_hardware('instance_uuid' => controller.server_id, 'hardware_spec' => {'deviceChange'=>[create_controller(options)]})
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-vsphere-1.7.0.1 lib/fog/vsphere/requests/compute/modify_vm_controller.rb
fog-vsphere-1.4.0 lib/fog/vsphere/requests/compute/modify_vm_controller.rb
fog-vsphere-1.3.0 lib/fog/vsphere/requests/compute/modify_vm_controller.rb