config.py, objects.py: more node group support
authorAdeodato Simo <dato@google.com>
Thu, 2 Dec 2010 16:34:53 +0000 (16:34 +0000)
committerAdeodato Simo <dato@google.com>
Wed, 8 Dec 2010 12:27:10 +0000 (12:27 +0000)
commite11a1b773e9e419c778e63a44b075d47953beefc
tree77d0eb9e18434f452599f022b277190869714d54
parenteb64da59bd3b1770dc3f3afc796a5304c92c8b75
config.py, objects.py: more node group support

In particular:

  - add AddNodeGroup and RemoveNodeGroup in config.py

  - refactor _UpgradeConfig to make use of _UnlockedAddNodeGroup

  - add support for objects.NodeGroup in ConfigWriter.Update; add missing
    "serial_no" attribute to NodeGroup objects

  - update NodeGroup.UpgradeConfig to set mtime and serial_no if missing
    (the refactored code in _UpgradeConfig was not settting mtime nor ctime)

Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/config.py
lib/objects.py