Commit 661c765b authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Rename 'ExportModeRemove' to 'ExportModeRemote'



In "Ganeti.Types", rename constructor "ExportModeRemove" of
"ExportMode" to "ExportModeRemote".  This fixes issue 577.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 9f312bae
...@@ -87,7 +87,7 @@ instance PyValue a => PyValue (NonEmpty a) where ...@@ -87,7 +87,7 @@ instance PyValue a => PyValue (NonEmpty a) where
-- using the declareSADT -- using the declareSADT
instance PyValue ExportMode where instance PyValue ExportMode where
showValue ExportModeLocal = show C.exportModeLocal showValue ExportModeLocal = show C.exportModeLocal
showValue ExportModeRemove = show C.exportModeLocal showValue ExportModeRemote = show C.exportModeLocal
instance PyValue CVErrorCode where instance PyValue CVErrorCode where
showValue = cVErrorCodeToRaw showValue = cVErrorCodeToRaw
......
...@@ -514,7 +514,7 @@ $(THH.makeJSONInstance ''RebootType) ...@@ -514,7 +514,7 @@ $(THH.makeJSONInstance ''RebootType)
-- | Export modes. -- | Export modes.
$(THH.declareLADT ''String "ExportMode" $(THH.declareLADT ''String "ExportMode"
[ ("ExportModeLocal", "local") [ ("ExportModeLocal", "local")
, ("ExportModeRemove", "remote") , ("ExportModeRemote", "remote")
]) ])
$(THH.makeJSONInstance ''ExportMode) $(THH.makeJSONInstance ''ExportMode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment