On 12/02/2014 03:32 PM, 'Klaus Aehlig' via ganeti-devel wrote:
....so that command-line tools can specify that an instance
is to be committed.

Signed-off-by: Klaus Aehlig <[email protected]>
---
  lib/cli_opts.py | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/lib/cli_opts.py b/lib/cli_opts.py
index 42b5c55..403e63d 100644
--- a/lib/cli_opts.py
+++ b/lib/cli_opts.py
@@ -60,6 +60,7 @@ __all__ = [
    "CLEANUP_OPT",
    "cli_option",
    "CLUSTER_DOMAIN_SECRET_OPT",
+  "COMMIT_OPT",
    "COMMON_CREATE_OPTS",
    "COMMON_OPTS",
    "COMPRESS_OPT",
@@ -899,6 +900,11 @@ FORTHCOMING_OPT = cli_option("--forthcoming", 
dest="forthcoming",
                               help="Only reserve resources, but do not"
                                    " create the instance yet")

+COMMIT_OPT = cli_option("--commit", dest="commit",
+                        action="store_true", default=False,
+                        help="The instance is already reserved and should"
+                             " be committed now")
+
  SHOWCMD_OPT = cli_option("--show-cmd", dest="show_command",
                           action="store_true", default=False,
                           help="Show command instead of executing it")


LGTM

--
Niklas Hambüchen
Google Germany GmbH, Dienerstr. 12, 80331 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores

Reply via email to