propellor spin

This commit is contained in:
Joey Hess 2014-04-04 15:23:09 -04:00
parent d902a4924b
commit bbca48d44b
Failed to extract signature
1 changed files with 4 additions and 3 deletions

View File

@ -241,7 +241,8 @@ runningContainer cid@(ContainerId hn cn) image containerprops = containerDesc ci
ident = ContainerIdent image hn cn runps
getrunningident :: IO (Maybe ContainerIdent)
getrunningident = simpleShClient (namedPipe cid) "cat" [propellorIdent] $ \rs -> do
getrunningident = catchDefaultIO Nothing $
simpleShClient (namedPipe cid) "cat" [propellorIdent] $ \rs -> do
print (rs, extractident rs)
return $ extractident rs