Bugfix add new line for ssh pubkey. (#55)
Bugfix add new line for ssh pubkey.
This commit is contained in:
Родитель
0421871cf7
Коммит
59ec6d179d
|
@ -70,9 +70,9 @@ def prepare_job_ssh_key_pair(user_extension):
|
|||
secret_root = './ssh-secret'
|
||||
Path(secret_root).mkdir(exist_ok=True)
|
||||
with open(os.path.join(secret_root, "ssh-publickey"), "w") as publickey:
|
||||
publickey.write(user_extension["jobSSH"]["pubKey"])
|
||||
publickey.write(user_extension["jobSSH"]["pubKey"].strip() + '\n')
|
||||
with open(os.path.join(secret_root, "ssh-privatekey"), "w") as privatekey:
|
||||
privatekey.write(user_extension["jobSSH"]["key"])
|
||||
privatekey.write(user_extension["jobSSH"]["key"].strip() + '\n')
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Загрузка…
Ссылка в новой задаче