Revision a2ae14e9 htools/Ganeti/Query/Query.hs

b/htools/Ganeti/Query/Query.hs
114 114

  
115 115
-- | Check whether list of queried fields contains live fields.
116 116
needsLiveData :: [FieldGetter a b] -> Bool
117
needsLiveData = any (\getter -> case getter of
118
                     FieldRuntime _ -> True
119
                     _ -> False)
117
needsLiveData = any isRuntimeField
120 118

  
121 119
-- | Checks whether we have requested exactly some names. This is a
122 120
-- simple wrapper over 'requestedNames' and 'nameField'.

Also available in: Unified diff