[why] my_ssh_pubkey is needed sometimes when submit jobs:
$ submit -m -c job.yaml -i ~/lkp-tests/jobs/ssh-on-fail.yaml submit_id=f87d2951-c226-4e51-a3e4-c71818a4c974 submit job.yaml failed, got job id=0, error: Missing hash key: "my_ssh_pubkey"
[how] add initialize my_ssh_pubkey when building my_info.
Signed-off-by: Luan Shengde shdluan@163.com --- sbin/build-my-info.rb | 1 + 1 file changed, 1 insertion(+)
diff --git a/sbin/build-my-info.rb b/sbin/build-my-info.rb index dbe093d..6be08a4 100755 --- a/sbin/build-my-info.rb +++ b/sbin/build-my-info.rb @@ -48,6 +48,7 @@ def build_my_info(option) info_es = build_my_info.search_my_info info_es.update option info_es['my_token'] = %x(uuidgen).chomp if info_es['my_token'].nil? + info_es['my_ssh_pubkey'] = []
build_my_info.config_my_info(info_es) end