aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-01 16:34:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-01 16:34:17 -0700
commitf9164fcfc840c954d8f645120580660a69477dc6 (patch)
tree3ebef49f72bd02ea5e1b35e87aafadb56be649f1
parent90bace9b553d717f9e588714557f45e128b89acc (diff)
downloadconsfigurator-f9164fcfc840c954d8f645120580660a69477dc6.tar.gz
fix printing embedded hosts and propspecs
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--src/host.lisp8
-rw-r--r--src/propspec.lisp8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/host.lisp b/src/host.lisp
index 7f0db94..40cba1a 100644
--- a/src/host.lisp
+++ b/src/host.lisp
@@ -34,10 +34,10 @@
be applied to the host.")))
(defmethod print-object ((host host) stream)
- (format stream "~S" `(make-instance
- 'host
- :attrs ',(slot-value host 'hostattrs)
- :props ,(slot-value host 'propspec)))
+ (format stream "#.~S" `(make-instance
+ 'host
+ :attrs ',(slot-value host 'hostattrs)
+ :props ,(slot-value host 'propspec)))
host)
(defmethod %eval-propspec-hostattrs ((host host) (propspec propspec))
diff --git a/src/propspec.lisp b/src/propspec.lisp
index 4ebe92c..60ed55b 100644
--- a/src/propspec.lisp
+++ b/src/propspec.lisp
@@ -97,10 +97,10 @@ property's apply slot."))
;; does not use MAKE-PROPSPEC because we do not want the :PREPROCESS
;; subroutines to be run again when the object is read back in
(defmethod print-object ((propspec propspec) stream)
- (format stream "~S" `(make-instance
- 'propspec
- :systems ',(slot-value propspec 'systems)
- :props ',(slot-value propspec 'applications)))
+ (format stream "#.~S" `(make-instance
+ 'propspec
+ :systems ',(slot-value propspec 'systems)
+ :props ',(slot-value propspec 'applications)))
propspec)