diff --git a/qa/qa_instance.py b/qa/qa_instance.py index 9fe46027234eeab3a3f85d4344f6d2fa9a33c4f5..7ef40ca43669b921e5aa4224e403d365ec4f75a6 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 3e77d7cd373df697cacd090439b573fda37c2d5c..daf7c90dd99845fa7b6520220eecb04aea26dffe 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)"), ],