
As top level job key, the name should be more exact. Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> --- doc/manual/borrow-machine.en.md | 2 +- doc/manual/borrow-machine.zh.md | 2 +- src/lib/job.cr | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/manual/borrow-machine.en.md b/doc/manual/borrow-machine.en.md index 4c3b348..b9c2bc4 100644 --- a/doc/manual/borrow-machine.en.md +++ b/doc/manual/borrow-machine.en.md @@ -203,7 +203,7 @@ Ensure that you have performed the following operations according to the [apply- suite: borrow testcase: borrow - pub_key: <%= + ssh_pub_key: <%= begin File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp rescue diff --git a/doc/manual/borrow-machine.zh.md b/doc/manual/borrow-machine.zh.md index d5f9c50..06d4db6 100644 --- a/doc/manual/borrow-machine.zh.md +++ b/doc/manual/borrow-machine.zh.md @@ -207,7 +207,7 @@ suite: borrow testcase: borrow - pub_key: <%= + ssh_pub_key: <%= begin File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").chomp rescue diff --git a/src/lib/job.cr b/src/lib/job.cr index 7746889..7ded6d8 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -199,7 +199,7 @@ class Job end private def set_sshr_info - return unless @hash["pub_key"]? + return unless @hash["ssh_pub_key"]? self["sshr_port"] = ENV["SSHR_PORT"] self["sshr_port_base"] = ENV["SSHR_PORT_BASE"] @@ -211,7 +211,7 @@ class Job end private def set_my_ssh_pubkey - pub_key = @hash["pub_key"]?.to_s + pub_key = @hash["ssh_pub_key"]?.to_s update_account_my_pub_key(pub_key) @hash["my_ssh_pubkey"] = @account_info["my_ssh_pubkey"] -- 2.23.0