summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2014-11-19 01:32:09 -0400
committerJoey Hess2014-11-19 01:32:09 -0400
commit1872ee1ffcd757ea2a9e78b6392d14e9f1a8bc9b (patch)
tree93a31facbb10820a3e37d60570a107b34f0e7ded /src/Propellor
parent8e3d7dc49a140259742d68cf3498887aa3e18504 (diff)
propellor spin
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/Docker.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Propellor/Property/Docker.hs b/src/Propellor/Property/Docker.hs
index 7b559a50..0fc7beec 100644
--- a/src/Propellor/Property/Docker.hs
+++ b/src/Propellor/Property/Docker.hs
@@ -462,9 +462,11 @@ provisionContainer cid = containerDesc cid $ property "provisioned" $ liftIO $ d
chain :: String -> Host -> IO ()
chain s h = case toContainerId s of
- Just cid -> onlyProcess (provisioningLock cid) $ do
- r <- runPropellor h $ ensureProperties $ hostProperties h
- putStrLn $ "\n" ++ show r
+ Just cid -> do
+ changeWorkingDirectory localdir
+ onlyProcess (provisioningLock cid) $ do
+ r <- runPropellor h $ ensureProperties $ hostProperties h
+ putStrLn $ "\n" ++ show r
Nothing -> error "bad container id"
stopContainer :: ContainerId -> IO Bool