From b73302c496743927987425e3cb9fe1c0572c15a3 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Thu, 1 Jul 2010 11:01:00 +0100 Subject: [PATCH] qa: fix gnt-instance modify -t drbd We need to pass the secondary node name, not a dict, which is an invalid value. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- qa/qa_instance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/qa_instance.py b/qa/qa_instance.py index c1d660f11..72b69de26 100644 --- a/qa/qa_instance.py +++ b/qa/qa_instance.py @@ -215,7 +215,8 @@ def TestInstanceConvertDisk(instance, snode): cmd = ['gnt-instance', 'modify', '-t', 'plain', instance['name']] AssertEqual(StartSSH(master['primary'], utils.ShellQuoteArgs(cmd)).wait(), 0) - cmd = ['gnt-instance', 'modify', '-t', 'drbd', '-n', snode, instance['name']] + cmd = ['gnt-instance', 'modify', '-t', 'drbd', '-n', snode['primary'], + instance['name']] AssertEqual(StartSSH(master['primary'], utils.ShellQuoteArgs(cmd)).wait(), 0) -- GitLab