Change the JSON serialization for the "category" field of data collectors,
in accordance to the latest version of the design document.
Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
, buildReport
) where
+import Data.Char
import Text.JSON
import Ganeti.Constants as C
-- | 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"