aboutsummaryrefslogtreecommitdiff
path: root/src/host.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-16 20:23:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-16 20:35:39 -0700
commit28ad2720a8602eb46d496b50da376b869250b22e (patch)
treee2b17357c10fd238f9c747df8d8e9bb7e5aca112 /src/host.lisp
parentb059c44b7ed012c9c1660f22a3fa8db9a966dcf3 (diff)
downloadconsfigurator-28ad2720a8602eb46d496b50da376b869250b22e.tar.gz
define & use DEFINE-PRINT-OBJECT-FOR-STRUCTLIKE
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/host.lisp')
-rw-r--r--src/host.lisp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/host.lisp b/src/host.lisp
index f03c662..5c8b6e9 100644
--- a/src/host.lisp
+++ b/src/host.lisp
@@ -103,13 +103,7 @@ Called by properties which set up such subhosts, like CHROOT:OS-BOOTSTRAPPED."
:propspec propspec
:hostattrs (list* :parent-hostattrs (hostattrs *host*) hostattrs)))
-(defmethod print-object ((host host) stream)
- (format stream "#.~S" `(make-instance
- ',(type-of host)
- :hostattrs ',(slot-value host 'hostattrs)
- :propspec ,(slot-value host 'propspec)
- :deploy ',(slot-value host 'default-deployment)))
- host)
+(define-print-object-for-structlike host)
(defmethod union-propspec-into-host
((host unpreprocessed-host) (propspec propspec))