lib/puppet/provider/vc_vm/default.rb
# return the mounted iso file name
return the mounted iso file name
return the mounted iso file name
def cdrom_iso
    cdrom = vm.config.hardware.device.find { |hw| hw.class == RbVmomi::VIM::VirtualCdrom }
    return nil unless cdrom
    return nil unless cdrom.backing.class == RbVmomi::VIM::VirtualCdromIsoBackingInfo
    return cdrom.backing.fileName.split(" ").last
  end
def cdrom_iso cdrom = vm . config . hardware . device . find { | hw | hw . class == RbVmomi :: VIM :: VirtualCdrom } return nil unless cdrom return nil unless cdrom . backing . class == RbVmomi :: VIM :: VirtualCdromIsoBackingInfo return cdrom . backing . fileName . split ( " " ) . last end
return the mounted iso file name
return the mounted iso file name