From aca55e1505eb910d577a5b14c1d9dec0ff5d2448 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 28 Aug 2009 12:44:36 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20QA=20test=20for=20=E2=80=9Cgnt-node=20eva?=
 =?UTF-8?q?cuate=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Before the arguments weren't valid.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 qa/qa_node.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/qa/qa_node.py b/qa/qa_node.py
index 6caa48e12..15777cb27 100644
--- a/qa/qa_node.py
+++ b/qa/qa_node.py
@@ -128,12 +128,14 @@ def TestNodeEvacuate(node, node2):
                                        " it to have no secondary instances.")
 
     # Evacuate all secondary instances
-    cmd = ['gnt-node', 'evacuate', '-f', node2['primary'], node3['primary']]
+    cmd = ['gnt-node', 'evacuate', '-f',
+           "--new-secondary=%s" % node3['primary'], node2['primary']]
     AssertEqual(StartSSH(master['primary'],
                          utils.ShellQuoteArgs(cmd)).wait(), 0)
 
     # ... and back again.
-    cmd = ['gnt-node', 'evacuate', '-f', node3['primary'], node2['primary']]
+    cmd = ['gnt-node', 'evacuate', '-f',
+           "--new-secondary=%s" % node2['primary'], node3['primary']]
     AssertEqual(StartSSH(master['primary'],
                          utils.ShellQuoteArgs(cmd)).wait(), 0)
   finally:
-- 
GitLab