machine: ssh: Use store-parameterize in a monad.

* gnu/machine/ssh (deploy-managed-host): Use store-parameterize in
monadic context.

Change-Id: I6441a5dac856633f2c2a00b77f21a385bf3a9510
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Sergey Trofimov 2025-03-18 21:49:30 +01:00 committed by Ludovic Courtès
parent b5745a327e
commit 60f8d67480
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -542,8 +542,8 @@ failed to switch systems while deploying '~a':~%~{~s ~}")
host
(inferior-exception-arguments c))))
os))
(parameterize ((%current-system system)
(%current-target-system #f))
(store-parameterize ((%current-system system)
(%current-target-system #f))
(with-roll-back #t
(mbegin %store-monad
(upgrade-shepherd-services (eval/error-handling c