TLMigrateInstance: Fix confusing text
authorMichael Hanselmann <hansmi@google.com>
Wed, 27 Apr 2011 15:15:47 +0000 (17:15 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 28 Apr 2011 14:26:10 +0000 (16:26 +0200)
Commit d5cafd31 changed this error message, swapping the
text parts in the process.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cmdlib.py

index 08b6bf0..c5bb308 100644 (file)
@@ -6455,10 +6455,10 @@ class TLMigrateInstance(Tasklet):
         else:
           text = "migrated"
         raise errors.OpPrereqError("Instances with disk template %s cannot"
-                                   " be %s over to arbitrary nodes"
+                                   " be %s to arbitrary nodes"
                                    " (neither an iallocator nor a target"
                                    " node can be passed)" %
-                                   (text, instance.disk_template),
+                                   (instance.disk_template, text),
                                    errors.ECODE_INVAL)
 
     i_be = self.cfg.GetClusterInfo().FillBE(instance)