[PATCH compass-ci] job.cr: when init job from es no need to reload the service ports

20 Mar
2021
20 Mar
'21
8:56 a.m.
move load service ports to the submit Signed-off-by: Cao Xueliang <caoxl78320@163.com> --- src/lib/job.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/job.cr b/src/lib/job.cr index b96cf15..c1ca223 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -53,7 +53,6 @@ class Job def initialize(job_content : JSON::Any, id) @hash = job_content.as_h - @hash.merge!(testbox_env) @es = Elasticsearch::Client.new @account_info = Hash(String, JSON::Any).new @log = JSONLogger.new @@ -150,6 +149,7 @@ class Job check_account_info() check_run_time() set_defaults() + @hash.merge!(testbox_env) end private def set_defaults -- 2.23.0
1439
Age (days ago)
1439
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cao Xueliang