Commit 59885275 authored by Guido Trotter's avatar Guido Trotter
Browse files

Change --nodes to --node

The --nodes option in gnt-backup really accepts only one node at a time.
Change it to --node, for added clarity and consistency with a similar
option in gnt-cluster. This patch also updates the relevant man page.

Reviewed-By: iustinp
parent 6c4811dc
...@@ -220,15 +220,14 @@ ...@@ -220,15 +220,14 @@
<cmdsynopsis> <cmdsynopsis>
<command>list</command> <command>list</command>
<arg>--nodes=<replaceable>NODE-LIST</replaceable></arg> <arg>--node=<replaceable>NODE</replaceable></arg>
</cmdsynopsis> </cmdsynopsis>
<para> <para>
Lists the exports currently available in the default directory Lists the exports currently available in the default directory
in all the nodes of the current cluster, or optionally only a in all the nodes of the current cluster, or optionally only a
subset of them specified by the <option>--nodes</option> subset of them specified using the <option>--node</option>
option (use this option multiple times to select multiple option (which can be used multiple times)
nodes).
</para> </para>
<para> <para>
......
...@@ -137,8 +137,9 @@ import_opts = [ ...@@ -137,8 +137,9 @@ import_opts = [
commands = { commands = {
'list': (PrintExportList, ARGS_NONE, 'list': (PrintExportList, ARGS_NONE,
[DEBUG_OPT, [DEBUG_OPT,
make_option("--nodes", dest="nodes", default=[], action="append", make_option("--node", dest="node", default=[], action="append",
help="List only backups stored on these nodes"), help="List only backups stored on this node"
" (can be used multiple times)"),
], ],
"", "Lists instance exports available in the ganeti cluster"), "", "Lists instance exports available in the ganeti cluster"),
'export': (ExportInstance, ARGS_ONE, 'export': (ExportInstance, ARGS_ONE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment