From 8ba03fdbc12ba07021785c7bd52f2be387b76693 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 21 Mar 2021 17:38:08 -0700 Subject: DEPLOY, DEPLOY-THESE: accept string for HOST Signed-off-by: Sean Whitton --- src/deployment.lisp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/deployment.lisp') diff --git a/src/deployment.lisp b/src/deployment.lisp index 221b89b..ee006fb 100644 --- a/src/deployment.lisp +++ b/src/deployment.lisp @@ -108,7 +108,9 @@ The evaluation of ADDITIONAL-PROPERTIES to produce a property application specification may retrieve existing hostattrs, but should not set any new ones (not to be confused with how the :HOSTATTRS subroutines of properties in ADDITIONAL-PROPERTIES may set additional hostattrs)." - (once-only (host) + (once-only ((host (if (stringp host) + `(make-host :hostattrs (list :hostname (list ,host))) + host))) `(deploy* ',connections ,host (let ((*host* (shallow-copy-host ,host))) @@ -137,7 +139,9 @@ The evaluation of PROPERTIES to produce a property application specification may retrieve existing hostattrs, but should not set any new ones (not to be confused with how the :HOSTATTRS subroutines of properties in PROPERTIES may set additional hostattrs)." - (once-only (host) + (once-only ((host (if (stringp host) + `(make-host :hostattrs (list :hostname (list ,host))) + host))) `(deploy-these* ',connections ,host (let ((*host* (shallow-copy-host ,host))) -- cgit v1.2.3