@@ -176,6 +198,8 @@ class Sched case boot_type when "ipxe" return job ? get_boot_ipxe(job) : ipxe_msg("No job now")
- when "libvirt"
return job ? get_boot_libvirt(job) : {"info" => "No job now"}.to_json
no need info field, if you want to use a flag to check whether a task exists, how about use {job_id=> ""} or {status => "0"}
Got it! I'll use {job_id => ""}.
--- Thanks, RenWen
Thanks, Shenwei
when "grub" return job ? get_boot_grub(job) : grub_msg("No job now") when "container"
-- 2.23.0