From 1856ff63a32e50f4074c7808339b6262c603be5d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 2 Apr 2022 12:36:17 -0700 Subject: :SUDO: use :FROM not :AS for keyword argument Primarily to avoid confusion with :AS connection type. Signed-off-by: Sean Whitton --- src/connection/sudo.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/connection') diff --git a/src/connection/sudo.lisp b/src/connection/sudo.lisp index 1197918..b8c7731 100644 --- a/src/connection/sudo.lisp +++ b/src/connection/sudo.lisp @@ -25,13 +25,13 @@ ;; data to obtain passwords by following the conventions for having ;; prerequisite data sources provide them. -(defmethod preprocess-connection-args ((type (eql :sudo)) &key as (user "root")) +(defmethod preprocess-connection-args ((type (eql :sudo)) &key from (user "root")) (list :sudo :user user :password (and - as + from (destructuring-bind (user host) - (split-string as :separator "@") + (split-string from :separator "@") (get-data-protected-string (strcat "--user-passwd--" host) user))))) -- cgit v1.2.3