[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/08: machine: ssh: Deprecate missing 'host-key' field.

From: guix-commits
Subject: 01/08: machine: ssh: Deprecate missing 'host-key' field.
Date: Fri, 6 Dec 2019 18:28:10 -0500 (EST)

civodul pushed a commit to branch wip-system-bootstrap
in repository guix.

commit ea86b1b6e3851a3735028a21366ab843f33bbdc0
Author: Ludovic Court├Ęs <address@hidden>
Date:   Fri Dec 6 13:21:11 2019 +0100

    machine: ssh: Deprecate missing 'host-key' field.
    * gnu/machine/ssh.scm (machine-ssh-session): Warn about missing host key.
 gnu/machine/ssh.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
index 23ae917..1b88fb4 100644
--- a/gnu/machine/ssh.scm
+++ b/gnu/machine/ssh.scm
@@ -103,6 +103,9 @@ one from the configuration's parameters if one was not 
               (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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]