From 666e013ff28bbffa99e818a59ccc8d820df629fe Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 19 Mar 2012 10:26:29 +0100 Subject: [PATCH] Fix type error in LUInstanceChangeGroup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If a specific list of groups has been requested, then the code used that, without transforming it to a (frozen)set first, which results in: unsupported operand type(s) for &: 'list' and 'frozenset' Trivial fix is to do that in the 'then' branch. Signed-off-by: Iustin Pop Reviewed-by: René Nussbaumer --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index fb49df1..b432794 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -11377,7 +11377,7 @@ class LUInstanceChangeGroup(LogicalUnit): if self.req_target_uuids: # User requested specific target groups - self.target_uuids = self.req_target_uuids + self.target_uuids = frozenset(self.req_target_uuids) else: # All groups except those used by the instance are potential targets self.target_uuids = owned_groups - inst_groups -- 1.7.10.4