diff --git a/lib/client/gnt_os.py b/lib/client/gnt_os.py index 890becc7f9f86a0e204905cc8e975803970422b3..0ffa9aca4c22c58f0ee0ae94a83f51f9e5bd0664 100644 --- a/lib/client/gnt_os.py +++ b/lib/client/gnt_os.py @@ -274,7 +274,7 @@ def ModifyOS(opts, args): osparams=osp, hidden_os=ohid, blacklisted_os=oblk) - SubmitOpCode(op, opts=opts) + SubmitOrSend(op, opts) return 0 @@ -293,7 +293,7 @@ commands = { "modify": ( ModifyOS, ARGS_ONE_OS, [HVLIST_OPT, OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, - HID_OS_OPT, BLK_OS_OPT], + HID_OS_OPT, BLK_OS_OPT, SUBMIT_OPT], "", "Modify the OS parameters"), } diff --git a/man/gnt-os.rst b/man/gnt-os.rst index c21556986de3769cf80f3b3b2dd094da0e54fd21..55fcd6a512d4af3830d23b9278428d1fd93ffc1c 100644 --- a/man/gnt-os.rst +++ b/man/gnt-os.rst @@ -44,7 +44,7 @@ in the cluster, including its validity status, the supported API versions, the supported parameters (if any) and their documentations, etc. -| **modify** [-H *HYPERVISOR*:option=*value*[,...]] +| **modify** [\--submit] [-H *HYPERVISOR*:option=*value*[,...]] | [\--hidden=*yes|no*] [\--blacklisted=*yes|no*] | {*OS*} @@ -66,6 +66,9 @@ Note: The given operating system doesn't have to exists. This allows preseeding the settings for operating systems not yet known to **gnt-os**. +See **ganeti(7)** for a description of ``--submit`` and other common +options. + .. vim: set textwidth=72 : .. Local Variables: .. mode: rst