Revision cb156a3e
ID | cb156a3e6a7f135950883abadc5368a4ddd8ce15 |
Parent | 9a914f7a |
Child | df0d116f, a9b42993 |
node evac: don't call IAllocator if no instances
Currently we generate an empty list only for the '-n node' invocation,
but for iallocator we still call the iallocator (which needs an RPC
call, etc.). By moving the computation of instances outside of the if
block, we can return early from the LU.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Files
- added
- modified
- copied
- renamed
- deleted