diff --git a/src/Ganeti/DataCollectors/Types.hs b/src/Ganeti/DataCollectors/Types.hs index 8a119ab868d4798232c53c3e7c4bbaa4e34b004b..06263638f92eb2c62e0d4c67a73c1b1ba4b5c57e 100644 --- a/src/Ganeti/DataCollectors/Types.hs +++ b/src/Ganeti/DataCollectors/Types.hs @@ -36,6 +36,7 @@ module Ganeti.DataCollectors.Types , buildReport ) where +import Data.Char import Text.JSON import Ganeti.Constants as C @@ -48,7 +49,7 @@ data DCCategory = DCInstance | DCStorage | DCDaemon | DCHypervisor -- | The JSON instance for DCCategory. instance JSON DCCategory where - showJSON = showJSON . show + showJSON = showJSON . map toLower . drop 2 . show readJSON = error "JSON read instance not implemented for type DCCategory"