Sha256: 99f9475a2c471e94877718d171f27448ef7f8092eb844568706a9d93b8f7aa70
Contents?: true
Size: 488 Bytes
Versions: 23
Compression:
Stored size: 488 Bytes
Contents
module Fog module Vsphere class Compute class Real def host_start_maintenance(name, cluster_name, datacenter_name, timeout = 0, evacuate_powered_off_vms = false) host_ref = get_host(name, cluster_name, datacenter_name) task = host_ref.EnterMaintenanceMode_Task(timeout: timeout, evacuatePoweredOffVms: evacuate_powered_off_vms) task.wait_for_completion { 'task_state' => task.info.state } end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems