aboutsummaryrefslogtreecommitdiff
path: root/src/host.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-13 14:01:38 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-15 17:18:39 -0700
commitdb650186699ec82de2cfc9c2cbed1816b231cfec (patch)
tree0a93e8f3c3fce0bf0939c2431d72be44bcc4780b /src/host.lisp
parent79b0da1845e75f15fffe73b137cc643c469d1c56 (diff)
downloadconsfigurator-db650186699ec82de2cfc9c2cbed1816b231cfec.tar.gz
attempt to implement revised propspecs spec
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/host.lisp')
-rw-r--r--src/host.lisp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/host.lisp b/src/host.lisp
index db028a7..88b26c5 100644
--- a/src/host.lisp
+++ b/src/host.lisp
@@ -47,10 +47,8 @@ be applied to the host.")))
(defmethod %eval-propspec-hostattrs ((host host) (propspec propspec))
"Modify HOST in-place according to :HOSTATTRS subroutines."
- (loop with *host* = host
- for form in (propspec-props propspec)
- for propapp = (compile-propapp form)
- do (propappattrs propapp)))
+ (let ((*host* host))
+ (propappattrs (eval-propspec propspec))))
;; return values of the following two functions share structure, and thus are
;; not safe to use except on host objects that were just made, or that are
@@ -107,7 +105,7 @@ entries."
(declaim (type host ,hostname-sym))
(defparameter ,hostname-sym
(%replace-propspec-into-host (make-instance 'host :attrs ',attrs)
- ,(props properties))
+ (props seqprops ,@properties))
,(car (getf attrs :desc)))
,@(and deploy
`((defdeploy ,hostname-sym (,deploy ,hostname-sym)))))))