unless vm.nil?
  $evm.log("info", "Detected VM:<#{vm.name}>")

  # If email is set to true in the model
  options = buildDetails(vm)