Make 'job clone --id' an action instead of 'job create --clone'.
Add the backward compatibility method and call.

This is a first step in allowing to specify different hosts when cloning,
but it's just a code restructuring, it doesn't fix anything (and hopefully
doesnt' break new things either).

Signed-off-by: Jean-Marc Eurin <[email protected]>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3480 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/topic_common.py b/cli/topic_common.py
index 0070349..1e1e08c 100755
--- a/cli/topic_common.py
+++ b/cli/topic_common.py
@@ -367,6 +367,11 @@
                                              self.msg_items)
 
 
+    def backward_compatibility(self, action, argv):
+        """To be overidden by subclass if their syntax changed"""
+        return action
+
+
     def parse(self, parse_info=[], req_items=None):
         """parse_info is a list of item_parse_info objects