X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/2238176806afd69a0d24db069f0bce0a838e0a20..77d43564742d2cc6dd80a062c4cf01059b58580c:/htools/Ganeti/Rpc.hs diff --git a/htools/Ganeti/Rpc.hs b/htools/Ganeti/Rpc.hs index d20d4c0..4ab9d7e 100644 --- a/htools/Ganeti/Rpc.hs +++ b/htools/Ganeti/Rpc.hs @@ -59,7 +59,6 @@ module Ganeti.Rpc , RpcCallVersion(..) , RpcResultVersion(..) - , StorageType(..) , StorageField(..) , RpcCallStorageList(..) , RpcResultStorageList(..) @@ -387,7 +386,7 @@ instance Rpc RpcCallNodeInfo RpcResultNodeInfo where -- Query node version. -- Note: We can't use THH as it does not know what to do with empty dict data RpcCallVersion = RpcCallVersion {} - deriving (Show, Read, Eq) + deriving (Show, Eq) instance J.JSON RpcCallVersion where showJSON _ = J.JSNull @@ -410,14 +409,6 @@ instance Rpc RpcCallVersion RpcResultVersion where -- ** StorageList -- | StorageList --- Get list of storage units. --- FIXME: This may be moved to Objects -$(declareSADT "StorageType" - [ ( "STLvmPv", 'C.stLvmPv ) - , ( "STFile", 'C.stFile ) - , ( "STLvmVg", 'C.stLvmVg ) - ]) -$(makeJSONInstance ''StorageType) -- FIXME: This may be moved to Objects $(declareSADT "StorageField"