From dd32a63a07107a749a5a8e7ab1d2b0d629ac4538 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 23 Jul 2014 12:25:38 -0400 Subject: propellor spin --- src/Propellor/Engine.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Propellor/Engine.hs') diff --git a/src/Propellor/Engine.hs b/src/Propellor/Engine.hs index a3fc0f30..b4260e9f 100644 --- a/src/Propellor/Engine.hs +++ b/src/Propellor/Engine.hs @@ -44,6 +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 -> return Nothing + Nothing -> do + liftIO $ print "fromHost found Nothing" + return Nothing Just h -> liftIO $ Just <$> runReaderT (runWithHost getter) h -- cgit v1.2.3