Add predicate whether to call cfgupgrade --downgrade
authorKlaus Aehlig <aehlig@google.com>
Thu, 26 Sep 2013 14:15:22 +0000 (16:15 +0200)
committerKlaus Aehlig <aehlig@google.com>
Fri, 4 Oct 2013 14:10:21 +0000 (16:10 +0200)
commit785214958a79745358efe43ccef77c4a663379f6
tree55693ca59eb226832e070baabcaa543e9d4b92bf
parent0890e0d19d738f36d01df35997aca975f995c44f
Add predicate whether to call cfgupgrade --downgrade

Provide a predicate that, given the current version and the
version to go to, tells whether it is appropriate to call
cfgupgrade --downgrade.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Jose Lopes <jabolopes@google.com>
lib/utils/version.py
test/py/ganeti.utils.version_unittest.py