Move _CalculateGroupIPolicy and _ComputeDiskSize
This makes it possible to better untangle the IAllocator code, which would otherwise lead to a recursive import structure as we need those helpers there as well. Signed-off-by:René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Showing
- lib/cmdlib.py 30 additions, 53 deletionslib/cmdlib.py
- lib/constants.py 3 additions, 0 deletionslib/constants.py
- lib/masterd/instance.py 31 additions, 0 deletionslib/masterd/instance.py
- test/ganeti.cmdlib_unittest.py 1 addition, 1 deletiontest/ganeti.cmdlib_unittest.py
- test/ganeti.query_unittest.py 5 additions, 3 deletionstest/ganeti.query_unittest.py
Loading
Please register or sign in to comment