From ed2fe73129108122d8f8e558baf3e7d8e1839165 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Mon, 17 Aug 2009 17:24:41 +0200
Subject: [PATCH] burnin: Don't pass any disk when replacing 2nd node

Replacing the secondary node always replaces it for all disks. Commit
2945fd2d added an error message for this case.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 tools/burnin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/burnin b/tools/burnin
index b38680fc4..381e54aae 100755
--- a/tools/burnin
+++ b/tools/burnin
@@ -540,7 +540,7 @@ class Burner(object):
                                   mode=mode,
                                   remote_node=tnode,
                                   iallocator=self.opts.iallocator,
-                                  disks=[i for i in range(self.disk_count)])
+                                  disks=[])
       Log("run %s %s" % (mode, msg), indent=2)
       self.ExecOrQueue(instance, op)
 
-- 
GitLab