Rename OpMoveInstance and LUMoveInstance
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 11:57:04 +0000 (12:57 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:13 +0000 (12:47 +0100)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

lib/client/gnt_instance.py
lib/cmdlib.py
lib/opcodes.py
tools/burnin

index 7f16cc4..aab49df 100644 (file)
@@ -870,7 +870,7 @@ def MoveInstance(opts, args):
     if not AskUser(usertext):
       return 1
 
-  op = opcodes.OpMoveInstance(instance_name=instance_name,
+  op = opcodes.OpInstanceMove(instance_name=instance_name,
                               target_node=opts.node,
                               shutdown_timeout=opts.shutdown_timeout)
   SubmitOrSend(op, opts, cl=cl)
index dc2e6e4..6317b4a 100644 (file)
@@ -5737,7 +5737,7 @@ class LUInstanceMigrate(LogicalUnit):
     return env, nl, nl_post
 
 
-class LUMoveInstance(LogicalUnit):
+class LUInstanceMove(LogicalUnit):
   """Move an instance by data-copying.
 
   """
index 3052b20..c965b85 100644 (file)
@@ -906,7 +906,7 @@ class OpInstanceMigrate(OpCode):
     ]
 
 
-class OpMoveInstance(OpCode):
+class OpInstanceMove(OpCode):
   """Move an instance.
 
   This move (with shutting down an instance and data copying) to an
index a5c31ab..de726b2 100755 (executable)
@@ -661,7 +661,7 @@ class Burner(object):
                  self.instances)
     for tnode, instance in mytor:
       Log("instance %s", instance, indent=1)
-      op = opcodes.OpMoveInstance(instance_name=instance,
+      op = opcodes.OpInstanceMove(instance_name=instance,
                                   target_node=tnode)
       self.ExecOrQueue(instance, [op])