propellor spin
This commit is contained in:
parent
1a44d4010a
commit
68ed5153aa
|
@ -246,8 +246,9 @@ runningContainer cid@(ContainerId hn cn) image containerprops = containerDesc ci
|
||||||
go oldimage
|
go oldimage
|
||||||
|
|
||||||
getrunningident :: IO (Maybe ContainerIdent)
|
getrunningident :: IO (Maybe ContainerIdent)
|
||||||
getrunningident = simpleShClient (namedPipe cid) "cat" [propellorIdent] $
|
getrunningident = simpleShClient (namedPipe cid) "cat" [propellorIdent] $ \rs -> do
|
||||||
return . extractident
|
print (extractident rs)
|
||||||
|
return $ extractident rs
|
||||||
|
|
||||||
extractident :: [Resp] -> Maybe ContainerIdent
|
extractident :: [Resp] -> Maybe ContainerIdent
|
||||||
extractident = headMaybe . catMaybes . map (readish :: String -> Maybe ContainerIdent) . catMaybes . map getStdout
|
extractident = headMaybe . catMaybes . map (readish :: String -> Maybe ContainerIdent) . catMaybes . map getStdout
|
||||||
|
|
Loading…
Reference in New Issue