aboutsummaryrefslogtreecommitdiff
path: root/src/data.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-05 16:29:46 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-10 20:45:21 -0700
commit56bc5a2c24b0fe56c72ced9a5ac85d982d592567 (patch)
treed01d1820afeadd4d50794e45007bba9d9533b373 /src/data.lisp
parentec508517bc89d3934afa9ec91f3787839b14be2d (diff)
downloadconsfigurator-56bc5a2c24b0fe56c72ced9a5ac85d982d592567.tar.gz
signal SKIPPED-PROPERTIES & factor out interpreting exit codes
Unconditionally signalling FAILED-CHANGE does not make sense because perhaps the type of condition C is not a subtype of SIMPLE-CONDITION. Moreover, when we invoke the SKIP-PROPERTY restart we do not actually pass the condition. For simplicity, and since all we need is notification that a SKIP-PROPERTY restart was invoked, instead define and signal a special-purpose condition. Additionally, use an exit code to pass the signal between Lisp images. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/data.lisp')
-rw-r--r--src/data.lisp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/data.lisp b/src/data.lisp
index 80a72be..c7f4094 100644
--- a/src/data.lisp
+++ b/src/data.lisp
@@ -714,12 +714,8 @@ Preprocessing must occur in the root Lisp."))
finally (setq record accum)))
;; Continue the deployment.
,(wrap
- `(with-backtrace-and-exit-code-two
- (uiop:quit
- (if (eql :no-change
- (%consfigure ',remaining-connections ,*host*))
- 0
- 1)))))))
+ `(with-backtrace-and-exit-code
+ (%consfigure ',remaining-connections ,*host*))))))
(handler-case
(with-standard-io-syntax
(let ((*allow-printing-passphrases* t))