propellor spin
This commit is contained in:
parent
d902a4924b
commit
bbca48d44b
|
@ -241,9 +241,10 @@ runningContainer cid@(ContainerId hn cn) image containerprops = containerDesc ci
|
||||||
ident = ContainerIdent image hn cn runps
|
ident = ContainerIdent image hn cn runps
|
||||||
|
|
||||||
getrunningident :: IO (Maybe ContainerIdent)
|
getrunningident :: IO (Maybe ContainerIdent)
|
||||||
getrunningident = simpleShClient (namedPipe cid) "cat" [propellorIdent] $ \rs -> do
|
getrunningident = catchDefaultIO Nothing $
|
||||||
print (rs, extractident rs)
|
simpleShClient (namedPipe cid) "cat" [propellorIdent] $ \rs -> do
|
||||||
return $ extractident rs
|
print (rs, 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