Sha256: 3dc070b69a51f817d773cdbacfe7c31ec30e0772f42cef0f0d194ae06d33a33c

Contents?: true

Size: 406 Bytes

Versions: 23

Compression:

Stored size: 406 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Real
        def host_finish_maintenance(name, cluster_name, datacenter_name, timeout = 0)
          host_ref = get_host(name, cluster_name, datacenter_name)
          task = host_ref.ExitMaintenanceMode_Task(timeout: timeout)
          task.wait_for_completion
          { 'task_state' => task.info.state }
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fog-vsphere-3.1.1 lib/fog/vsphere/requests/compute/host_finish_maintenance.rb
fog-vsphere-3.1.0 lib/fog/vsphere/requests/compute/host_finish_maintenance.rb
fog-vsphere-3.0.0 lib/fog/vsphere/requests/compute/host_finish_maintenance.rb