return unless @hash.has_key?("queue") ?
if !@hash["queue"].to_s.starts_with?(tbox_group)
use unless instead of if !.
good !
Thanks, Shenwei
Thanks Luan Shengde
raise "an incorrect queue-prefix is specified: #{queue}"
end
return
- end
- # set default value
- if tbox_group.to_s.starts_with?("vm") || tbox_group.to_s.starts_with?("dc")
self["queue"] = "#{tbox_group}.#{arch}"
- else
self["queue"] = tbox_group
- end
- end
- # if not assign tbox_group, set it to a match result from testbox # ?if job special testbox, should we just set tbox_group=textbox private def update_tbox_group_from_testbox
-- 2.23.0