From b6322b3ebab7982ff4dd67e81a149f57c87bd7fd Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Fri, 1 Mar 2013 10:59:55 +0100 Subject: [PATCH] Fix LUTestAllocator with instance alloc This is similar to commit 8775e62a; the addition of node_whitelist broke this LU as well. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Bernardo Dal Seno <bdalseno@google.com> --- lib/cmdlib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index f2440afb9..96a82fdce 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc. +# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16168,7 +16168,8 @@ class LUTestAllocator(NoHooksLU): nics=self.op.nics, vcpus=self.op.vcpus, spindle_use=self.op.spindle_use, - hypervisor=self.op.hypervisor) + hypervisor=self.op.hypervisor, + node_whitelist=None) elif self.op.mode == constants.IALLOCATOR_MODE_RELOC: req = iallocator.IAReqRelocate(name=self.op.name, relocate_from=list(self.relocate_from)) -- GitLab