aboutsummaryrefslogtreecommitdiff
path: root/src/deployment.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-24 13:51:15 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-24 13:51:15 -0700
commitee3ba287cc5faafbd35febac2fa9875eee067a49 (patch)
tree2d3b3256378693cebb7ca765514a0eb7496f7cee /src/deployment.lisp
parentcd39d1fa08f0811e3361aca4a0fc1f0cd8ce7b2f (diff)
downloadconsfigurator-ee3ba287cc5faafbd35febac2fa9875eee067a49.tar.gz
make PROPERTIES argument to DEPLOY{S,}-THESE* required
There is no point in calling either function without it. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/deployment.lisp')
-rw-r--r--src/deployment.lisp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/deployment.lisp b/src/deployment.lisp
index 3414aa2..45b5c07 100644
--- a/src/deployment.lisp
+++ b/src/deployment.lisp
@@ -66,7 +66,7 @@ code which programmatically constructs deployments will need to call this."
additional-properties)
host)))
-(defun deploy-these* (connections host &optional properties)
+(defun deploy-these* (connections host properties)
"Like DEPLOY*, but replace the properties of HOST with PROPERTIES.
HOST has all its usual static informational attributes, as set by its usual
@@ -75,10 +75,8 @@ by PROPERTIES can override the host's usual static informational attributes,
in the same way that later entries in the list of properties specified in
DEFHOST forms can override earlier entries (see DEFHOST's docstring)."
(%consfigure (preprocess-connections connections)
- (if properties
- (%replace-propspec-into-host (shallow-copy-host host)
- properties)
- host)))
+ (%replace-propspec-into-host
+ (shallow-copy-host host) properties)))
(defun continue-deploy* (remaining-connections)
"Complete the work of an enclosing call to DEPLOY* or DEPLOY-THESE*.
@@ -185,7 +183,7 @@ Also useful to set up VMs, chroots, disk images etc. on localhost."
(declare (ignore additional-properties))
(%consfigure connections host)))
-(defprop deploys-these :posix (connections host &optional properties)
+(defprop deploys-these :posix (connections host properties)
"Like DEPLOYS, except apply to HOST each of the properties specified by
PROPERTIES, and not the host's usual properties, unless they also appear in
PROPERTIES, like DEPLOY-THESE."