From 21ee23186048b7dce9371ec7ca9c56c5b76081b7 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 28 Jul 2011 11:26:36 +0200 Subject: [PATCH] cli: Add constant for node group option ganeti-watcher will use this constant to pass the option to itself for processing all node groups. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cli.py b/lib/cli.py index dcc13ad15..e156e44cd 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -804,7 +804,8 @@ NODE_LIST_OPT = cli_option("-n", "--node", dest="nodes", default=[], " times, if not given defaults to all nodes)", completion_suggest=OPT_COMPL_ONE_NODE) -NODEGROUP_OPT = cli_option("-g", "--node-group", +NODEGROUP_OPT_NAME = "--node-group" +NODEGROUP_OPT = cli_option("-g", NODEGROUP_OPT_NAME, dest="nodegroup", help="Node group (name or uuid)", metavar="<nodegroup>", -- GitLab