me
/
guix
Archived
1
0
Fork 0

machine: ssh: Deprecate missing 'host-key' field.

* gnu/machine/ssh.scm (machine-ssh-session): Warn about missing host key.
master
Ludovic Courtès 2019-12-06 13:21:11 +01:00
parent 1b3fa123ea
commit 2617d956d8
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ one from the configuration's parameters if one was not provided."
(port (machine-ssh-configuration-port config))
(identity (machine-ssh-configuration-identity config))
(host-key (machine-ssh-configuration-host-key config)))
(unless host-key
(warning (G_ "<machine-ssh-configuration> without a 'host-key' \
is deprecated~%")))
(open-ssh-session host-name
#:user user
#:port port