From 745dae57563d2f102ec8cd30349d663336309692 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 13 Apr 2012 21:10:42 +0200
Subject: [PATCH] gnt-cluster modify: Add "--submit" option

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/client/gnt_cluster.py | 4 ++--
 man/gnt-cluster.rst       | 7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py
index f1bedceba..edb2eb0ee 100644
--- a/lib/client/gnt_cluster.py
+++ b/lib/client/gnt_cluster.py
@@ -1069,7 +1069,7 @@ def SetClusterParams(opts, args):
                                   hv_state=hv_state,
                                   disk_state=disk_state,
                                   )
-  SubmitOpCode(op, opts=opts)
+  SubmitOrSend(op, opts)
   return 0
 
 
@@ -1550,7 +1550,7 @@ commands = {
      DRBD_HELPER_OPT, NODRBD_STORAGE_OPT, DEFAULT_IALLOCATOR_OPT,
      RESERVED_LVS_OPT, DRY_RUN_OPT, PRIORITY_OPT, PREALLOC_WIPE_DISKS_OPT,
      NODE_PARAMS_OPT, USE_EXTERNAL_MIP_SCRIPT, DISK_PARAMS_OPT, HV_STATE_OPT,
-     DISK_STATE_OPT] +
+     DISK_STATE_OPT, SUBMIT_OPT] +
     INSTANCE_POLICY_OPTS,
     "[opts...]",
     "Alters the parameters of the cluster"),
diff --git a/man/gnt-cluster.rst b/man/gnt-cluster.rst
index 97a9443fb..d54368200 100644
--- a/man/gnt-cluster.rst
+++ b/man/gnt-cluster.rst
@@ -554,7 +554,7 @@ be 1.
 MODIFY
 ~~~~~~
 
-| **modify**
+| **modify** [\--submit]
 | [\--vg-name *vg-name*]
 | [\--no-lvm-storage]
 | [\--enabled-hypervisors *hypervisors*]
@@ -596,7 +596,7 @@ The ``--vg-name``, ``--no-lvm-storarge``, ``--enabled-hypervisors``,
 command.
 
 The ``--hypervisor-state`` and ``--disk-state`` options are described in
-detail in **ganeti**(7).
+detail in **ganeti(7)**.
 
 The ``--add-uids`` and ``--remove-uids`` options can be used to
 modify the user-id pool by adding/removing a list of user-ids or
@@ -621,6 +621,9 @@ command. To clear the default iallocator, just pass an empty string
 The ``--specs-...`` and ``--ipol-disk-templates`` options are described
 in the **init** command.
 
+See **ganeti(7)** for a description of ``--submit`` and other common
+options.
+
 QUEUE
 ~~~~~
 
-- 
GitLab