Revision ef8270dc

b/lib/cli.py
50 50

  
51 51
__all__ = [
52 52
  # Command line options
53
  "ABSOLUTE_OPT",
53 54
  "ADD_UIDS_OPT",
54 55
  "ALLOCATABLE_OPT",
55 56
  "ALLOC_POLICY_OPT",
......
1381 1382
                             " ballooning it up or down to the new value",
1382 1383
                             default=None, type="unit", metavar="<size>")
1383 1384

  
1385
ABSOLUTE_OPT = cli_option("--absolute", dest="absolute",
1386
                          action="store_true", default=False,
1387
                          help="Marks the grow as absolute instead of the"
1388
                          " (default) relative mode")
1389

  
1384 1390
#: Options provided by all commands
1385 1391
COMMON_OPTS = [DEBUG_OPT]
1386 1392

  
b/lib/client/gnt_instance.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
663 663
  amount = utils.ParseUnit(args[2])
664 664
  op = opcodes.OpInstanceGrowDisk(instance_name=instance,
665 665
                                  disk=disk, amount=amount,
666
                                  wait_for_sync=opts.wait_for_sync)
666
                                  wait_for_sync=opts.wait_for_sync,
667
                                  absolute=opts.absolute)
667 668
  SubmitOrSend(op, opts)
668 669
  return 0
669 670

  
......
1639 1640
    GrowDisk,
1640 1641
    [ArgInstance(min=1, max=1), ArgUnknown(min=1, max=1),
1641 1642
     ArgUnknown(min=1, max=1)],
1642
    [SUBMIT_OPT, NWSYNC_OPT, DRY_RUN_OPT, PRIORITY_OPT],
1643
    [SUBMIT_OPT, NWSYNC_OPT, DRY_RUN_OPT, PRIORITY_OPT, ABSOLUTE_OPT],
1643 1644
    "<instance> <disk> <size>", "Grow an instance's disk"),
1644 1645
  "change-group": (
1645 1646
    ChangeGroup, ARGS_ONE_INSTANCE,

Also available in: Unified diff