function* fetchVmCdRom ({ vmId, current }) {
  const cdrom = yield callExternalAction('getCdRom', Api.getCdRom, getVmCdRom({ vmId, current }))

  let cdromInternal = null
  if (cdrom) {
    cdromInternal = Api.cdRomToInternal({ cdrom })
  }
  return cdromInternal
}
/*
 * Fetch a VM's cdrom configuration based on the status of the VM. A running VM's cdrom
 * info comes from "current=true" while a non-running VM's cdrom info comes from the
 * next_run/"current=false" API parameter.
 */
Fetch a VM's cdrom configuration based on the status of the VM. A running VM's cdrom
info comes from "current=true" while a non-running VM's cdrom info comes from the
next_run/"current=false" API parameter.
Fetch a VM ' s cdrom configuration based on the status of the VM . A running VM ' s cdrom info comes from " current = true " while a non - running VM ' s cdrom info comes from the next_run / " current = false " API parameter .
function* fetchVmCdRom ({ vmId, current }) {
  const cdrom = yield callExternalAction('getCdRom', Api.getCdRom, getVmCdRom({ vmId, current }))
  let cdromInternal = null
  if (cdrom) {
    cdromInternal = Api.cdRomToInternal({ cdrom })
  }
  return cdromInternal
}
function * fetchVmCdRom ( { vmId , current } ) { const cdrom = yield callExternalAction ( 'getCdRom' , Api . getCdRom , getVmCdRom ( { vmId , current } ) ) let cdromInternal = null if ( cdrom ) { cdromInternal = Api . cdRomToInternal ( { cdrom } ) } return cdromInternal }
Fetch a VM's cdrom configuration based on the status of the VM.
Fetch a VM ' s cdrom configuration based on the status of the VM .