summaryrefslogtreecommitdiff
path: root/src/Propellor/Spin.hs
diff options
context:
space:
mode:
authorJoey Hess2015-10-28 20:20:53 -0400
committerJoey Hess2015-10-28 20:20:53 -0400
commitdba2e73aa7daede014969d6c4c159e86871d6b01 (patch)
treea854d1c35753b78620ee8f438dba6d4ca715cea4 /src/Propellor/Spin.hs
parent6de8582fbae52a389c0d391f768284d6434b1467 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Spin.hs')
-rw-r--r--src/Propellor/Spin.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Propellor/Spin.hs b/src/Propellor/Spin.hs
index 0c457705..478d1517 100644
--- a/src/Propellor/Spin.hs
+++ b/src/Propellor/Spin.hs
@@ -29,6 +29,7 @@ import Propellor.Types.Info
import qualified Propellor.Shim as Shim
import Utility.FileMode
import Utility.SafeCommand
+import Utility.ConcurrentOutput
commitSpin :: IO ()
commitSpin = do
@@ -63,6 +64,7 @@ spin' mprivdata relay target hst = do
getprivdata
-- And now we can run it.
+ flushConcurrentOutput
unlessM (boolSystem "ssh" (map Param $ cacheparams ++ ["-t", sshtarget, shellWrap runcmd])) $
error "remote propellor failed"
where