Move Ipolicy utility function to cmdlib/common.py
authorHelga Velroyen <helgav@google.com>
Wed, 7 Aug 2013 11:50:27 +0000 (13:50 +0200)
committerHelga Velroyen <helgav@google.com>
Thu, 8 Aug 2013 15:48:38 +0000 (17:48 +0200)
commit4e771a9573902972ca9679e0c27276ccb4f15c50
tree2976e17e38cf0f3c1e70ad0b6f4b1bef31ada4c9
parentd514e18b9dbf26058c9b506099e80b6ddde93e26
Move Ipolicy utility function to cmdlib/common.py

Since the check of consistency between an ipolicy and
the list of enabled disk templates will not only be
needed on cluster modification, but also on group
modification, we move the respective function and its
unit tests to the 'common' module.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/cmdlib/cluster.py
lib/cmdlib/common.py
test/py/ganeti.cmdlib.cluster_unittest.py
test/py/ganeti.cmdlib.common_unittest.py [new file with mode: 0755]