Commit 666e013f authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix type error in LUInstanceChangeGroup

If a specific list of groups has been requested, then the code used
that, without transforming it to a (frozen)set first, which results

 unsupported operand type(s) for &: 'list' and 'frozenset'

Trivial fix is to do that in the 'then' branch.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarRené Nussbaumer <>
parent b8fe7ca6
......@@ -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)
# All groups except those used by the instance are potential targets
self.target_uuids = owned_groups - inst_groups
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment