propellor spin
This commit is contained in:
parent
38cc968a35
commit
9c0e9e2f19
|
@ -346,11 +346,18 @@ provisionContainer cid = containerDesc cid $ property "provision" $ liftIO $ do
|
||||||
hPutStrLn stderr s
|
hPutStrLn stderr s
|
||||||
hFlush stderr
|
hFlush stderr
|
||||||
go Nothing rest
|
go Nothing rest
|
||||||
Done -> ret lastline
|
Done -> do
|
||||||
go lastline [] = ret lastline
|
debug ["reached Done"]
|
||||||
|
ret lastline
|
||||||
|
go lastline [] = do
|
||||||
|
debug ["reached end of output"]
|
||||||
|
ret lastline
|
||||||
|
|
||||||
ret lastline = return $ fromMaybe FailedChange $
|
ret lastline = do
|
||||||
readish =<< lastline
|
let v = fromMaybe FailedChange $
|
||||||
|
readish =<< lastline
|
||||||
|
debug ["provisionContainer returning", show v]
|
||||||
|
return v
|
||||||
|
|
||||||
stopContainer :: ContainerId -> IO Bool
|
stopContainer :: ContainerId -> IO Bool
|
||||||
stopContainer cid = boolSystem dockercmd [Param "stop", Param $ fromContainerId cid ]
|
stopContainer cid = boolSystem dockercmd [Param "stop", Param $ fromContainerId cid ]
|
||||||
|
|
Loading…
Reference in New Issue