From 41a23743e7f5b90c12a2b2ef19ccb3dcbb7bfef9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 23 Jul 2014 12:27:38 -0400 Subject: propellor spin --- src/Propellor/Engine.hs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Propellor/Engine.hs') diff --git a/src/Propellor/Engine.hs b/src/Propellor/Engine.hs index b4260e9f..ed886ef7 100644 --- a/src/Propellor/Engine.hs +++ b/src/Propellor/Engine.hs @@ -44,8 +44,8 @@ ensureProperty = catchPropellor . propertySatisfy -- For example, `fromHost hosts "otherhost" getSshPubKey` fromHost :: [Host] -> HostName -> Propellor a -> Propellor (Maybe a) fromHost l hn getter = case findHost l hn of - Nothing -> do - liftIO $ print "fromHost found Nothing" - return Nothing - Just h -> liftIO $ Just <$> - runReaderT (runWithHost getter) h + Nothing -> return Nothing + Just h -> liftIO $ do + print ("fromHost", hn, "using", h) + Just <$> + runReaderT (runWithHost getter) h -- cgit v1.2.3