Revision 5e9deac0 htools/Ganeti/HTools/Instance.hs

b/htools/Ganeti/HTools/Instance.hs
100 100

  
101 101
-- | Check if instance is offline.
102 102
isOffline :: Instance -> Bool
103
isOffline (Instance {runSt = T.AdminOffline}) = True
104
isOffline _                                   = False
103
isOffline (Instance {runSt = T.StatusOffline}) = True
104
isOffline _                                    = False
105 105

  
106 106

  
107 107
-- | Helper to check if the instance is not offline.

Also available in: Unified diff