gnt-node: Add instance policy to migrate
[ganeti-local] / lib / client / gnt_backup.py
index f0acea9..dcde5d7 100644 (file)
@@ -20,7 +20,7 @@
 
 """Backup related commands"""
 
-# pylint: disable-msg=W0401,W0613,W0614,C0103
+# pylint: disable=W0401,W0613,W0614,C0103
 # W0401: Wildcard import ganeti.cli
 # W0613: Unused argument, since all functions follow the same API
 # W0614: Unused import %s from wildcard import (since we need cli)
@@ -32,9 +32,6 @@ from ganeti import constants
 from ganeti import errors
 
 
-_VALUE_TRUE = "true"
-
-
 def PrintExportList(opts, args):
   """Prints a list of all the exported system images.
 
@@ -107,7 +104,7 @@ def RemoveExport(opts, args):
   @return: the desired exit code
 
   """
-  op = opcodes.OpRemoveExport(instance_name=args[0])
+  op = opcodes.OpBackupRemove(instance_name=args[0])
 
   SubmitOpCode(op, opts=opts)
   return 0
@@ -118,6 +115,7 @@ import_opts = [
   IDENTIFY_DEFAULTS_OPT,
   SRC_DIR_OPT,
   SRC_NODE_OPT,
+  IGNORE_IPOLICY_OPT,
   ]