summaryrefslogtreecommitdiff
path: root/src/Propellor/CmdLine.hs
diff options
context:
space:
mode:
authorJoey Hess2015-10-20 23:33:19 -0400
committerJoey Hess2015-10-20 23:33:19 -0400
commit745f42c1499749345c32736342959584587c9b57 (patch)
tree09c703415a309369796a8e394163010901b809cd /src/Propellor/CmdLine.hs
parent2f9c0bf950e9e879ca374ab8fc523c5486f156bd (diff)
simplify privdata propigation to spin from controller
Diffstat (limited to 'src/Propellor/CmdLine.hs')
-rw-r--r--src/Propellor/CmdLine.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs
index a0be167e..9f798166 100644
--- a/src/Propellor/CmdLine.hs
+++ b/src/Propellor/CmdLine.hs
@@ -119,8 +119,7 @@ defaultMain hostlist = do
go True cmdline = updateFirst cmdline $ go False cmdline
go False (Spin hs mrelay) = do
commitSpin
- forM_ hs $ \hn -> withhost hn $
- spin (maybe RegularSpin RelaySpin mrelay) hn
+ forM_ hs $ \hn -> withhost hn $ spin mrelay hn
go False cmdline@(SimpleRun hn) = buildFirst cmdline $
go False (Run hn)
go False (Run hn) = ifM ((==) 0 <$> getRealUserID)