Pass correct params in move-instance
authorHrvoje Ribicic <riba@google.com>
Thu, 26 Mar 2015 14:35:42 +0000 (14:35 +0000)
committerHrvoje Ribicic <riba@google.com>
Thu, 26 Mar 2015 15:18:03 +0000 (16:18 +0100)
move-instance incorrectly passes backend params as the OS params when
moving an instance. This patch fixes this.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>

tools/move-instance

index b6b6418..1a9afa4 100755 (executable)
@@ -450,7 +450,7 @@ class MoveDestExecutor(object):
                                   mrt.move.dest_disk_template,
                                   mrt.src_instinfo, mrt.src_expinfo,
                                   mrt.move.hvparams, mrt.move.beparams,
-                                  mrt.move.beparams, mrt.move.nics)
+                                  mrt.move.osparams, mrt.move.nics)
     mrt.PollJob(dest_client, job_id,
                 remote_import_fn=compat.partial(self._SetImportInfo, mrt))