From 1e020d1b3f1cd9c1bc252dc941e94c2fc4f3f311 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Tue, 13 Nov 2007 15:04:01 +0000
Subject: [PATCH] =?UTF-8?q?Fix=20--node=20option=20for=20=E2=80=9Cgnt-back?=
 =?UTF-8?q?up=20list=E2=80=9D.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Reviewed-by: iustinp
---
 qa/qa_instance.py  | 2 +-
 scripts/gnt-backup | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/qa/qa_instance.py b/qa/qa_instance.py
index 9fe460272..7ef40ca43 100644
--- a/qa/qa_instance.py
+++ b/qa/qa_instance.py
@@ -188,7 +188,7 @@ def TestBackupList(expnode):
   """gnt-backup list"""
   master = qa_config.GetMasterNode()
 
-  cmd = ['gnt-backup', 'list', '--nodes=%s' % expnode['primary']]
+  cmd = ['gnt-backup', 'list', '--node=%s' % expnode['primary']]
   AssertEqual(StartSSH(master['primary'],
                        utils.ShellQuoteArgs(cmd)).wait(), 0)
 
diff --git a/scripts/gnt-backup b/scripts/gnt-backup
index 3e77d7cd3..daf7c90dd 100755
--- a/scripts/gnt-backup
+++ b/scripts/gnt-backup
@@ -137,7 +137,7 @@ import_opts = [
 commands = {
   'list': (PrintExportList, ARGS_NONE,
            [DEBUG_OPT,
-            make_option("--node", dest="node", default=[], action="append",
+            make_option("--node", dest="nodes", default=[], action="append",
                         help="List only backups stored on this node"
                              " (can be used multiple times)"),
             ],
-- 
GitLab