propellor spin

This commit is contained in:
Joey Hess 2014-11-19 01:32:09 -04:00
parent 8e3d7dc49a
commit 1872ee1ffc
Failed to extract signature
1 changed files with 5 additions and 3 deletions

View File

@ -462,7 +462,9 @@ provisionContainer cid = containerDesc cid $ property "provisioned" $ liftIO $ d
chain :: String -> Host -> IO () chain :: String -> Host -> IO ()
chain s h = case toContainerId s of chain s h = case toContainerId s of
Just cid -> onlyProcess (provisioningLock cid) $ do Just cid -> do
changeWorkingDirectory localdir
onlyProcess (provisioningLock cid) $ do
r <- runPropellor h $ ensureProperties $ hostProperties h r <- runPropellor h $ ensureProperties $ hostProperties h
putStrLn $ "\n" ++ show r putStrLn $ "\n" ++ show r
Nothing -> error "bad container id" Nothing -> error "bad container id"