Upgrades made on loading the configuration are always saved
authorBernardo Dal Seno <bdalseno@google.com>
Wed, 6 Feb 2013 13:52:30 +0000 (14:52 +0100)
committerBernardo Dal Seno <bdalseno@google.com>
Mon, 11 Feb 2013 14:20:07 +0000 (15:20 +0100)
commit45f6215642b4a57a82db9596b470d4f82534b253
tree473b86f9815cafb562eb8d74c0013de3569d5722
parent7f5edc60e5ea8a6956914e8eeeb0fda14eb67a4d
Upgrades made on loading the configuration are always saved

Before, only some upgrades were written back to the configuration file. A
little refactoring of _UpgradeConfig() has been done to write unit tests.

Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/config.py
test/py/ganeti.config_unittest.py