---
lib/cli.py | 5 +++++
scripts/gnt-instance | 5 +----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/cli.py b/lib/cli.py
index ce3ef3e..dc548de 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -76,6 +76,7 @@ __all__ = [
"SHOWCMD_OPT",
"SINGLE_NODE_OPT",
"SUBMIT_OPT",
+ "STATIC_OPT",
"SYNC_OPT",
"TAG_SRC_OPT",
"USEUNITS_OPT",
@@ -612,6 +613,10 @@ CLEANUP_OPT = cli_option("--cleanup", dest="cleanup",
" disrupt briefly the replication (like during the"
" migration")
+STATIC_OPT = cli_option("-s", "--static", dest="static",
+ action="store_true", default=False,
+ help="Only show configuration data, not runtime data")
+
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
diff --git a/scripts/gnt-instance b/scripts/gnt-instance
index 4eef1f7..6bfa996 100755
--- a/scripts/gnt-instance
+++ b/scripts/gnt-instance
@@ -1404,10 +1404,7 @@ commands = {
"Move instance to an arbitrary node"
" (only for instances of type file and lv)"),
'info': (ShowInstanceConfig, ARGS_MANY_INSTANCES,
- [DEBUG_OPT,
- cli_option("-s", "--static", dest="static",
- action="store_true", default=False,
- help="Only show configuration data, not runtime data"),
+ [DEBUG_OPT, STATIC_OPT,
cli_option("--all", dest="show_all",
default=False, action="store_true",
help="Show info on all instances on the cluster."
--
1.6.3.3