1) Global config uses "lab" not "LAB".
2) Do a crystal-format.
Signed-off-by: Ren Wen <15991987063(a)163.com>
---
src/scheduler/constants.cr | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/scheduler/constants.cr b/src/scheduler/constants.cr
index 1b37333..c263478 100644
--- a/src/scheduler/constants.cr
+++ b/src/scheduler/constants.cr
@@ -10,7 +10,7 @@ JOB_ES_PORT = 9200
JOB_ES_PORT_DEBUG = 9201
JOB_INDEX_TYPE = "jobs/_doc"
-LAB = (ENV.has_key?("LAB") ? ENV["LAB"] : "nolab")
+LAB = (ENV.has_key?("lab") ? ENV["lab"] : "nolab")
SCHED_HOST = (ENV.has_key?("SCHED_HOST") ? ENV["SCHED_HOST"] : "172.17.0.1")
SCHED_PORT = (ENV.has_key?("SCHED_PORT") ? ENV["SCHED_PORT"] : 3000).to_i32
@@ -25,7 +25,7 @@ SRV_OS = "/srv/os"
SRV_INITRD = "/srv/initrd"
INITRD_HTTP_PREFIX = "http://#{INITRD_HTTP_HOST}:#{INITRD_HTTP_PORT}"
-OS_HTTP_PREFIX = "http://#{OS_HTTP_HOST}:#{OS_HTTP_PORT}"
-SCHED_HTTP_PREFIX = "http://#{SCHED_HOST}:#{SCHED_PORT}"
+OS_HTTP_PREFIX = "http://#{OS_HTTP_HOST}:#{OS_HTTP_PORT}"
+SCHED_HTTP_PREFIX = "http://#{SCHED_HOST}:#{SCHED_PORT}"
DEMO_JOB = %({"suite":"pixz","testcase":"pixz","category":"benchmark","nr_threads":1,"pixz":null,"job_origin":"jobs/pixz.yaml","testbox":"wfg-e595","arch":"x86_64","tbox_group":"wfg-e595","id":"100","kmsg":null,"boot-time":null,"uptime":null,"iostat":null,"heartbeat":null,"vmstat":null,"numa-numastat":null,"numa-vmstat":null,"numa-meminfo":null,"proc-vmstat":null,"proc-stat":null,"meminfo":null,"slabinfo":null,"interrupts":null,"kconfig":"x86_64-rhel-7.6","compiler":"gcc-7"})
--
2.23.0