Fix type error in LUInstanceChangeGroup
authorIustin Pop <iustin@google.com>
Mon, 19 Mar 2012 09:26:29 +0000 (10:26 +0100)
committerIustin Pop <iustin@google.com>
Mon, 19 Mar 2012 09:48:28 +0000 (10:48 +0100)
commit666e013ff28bbffa99e818a59ccc8d820df629fe
tree8b52b9c32a0605a36811096370fc1a5060e091e4
parentb8fe7ca6f6559845c6f96657f52c7d24cd792317
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
in:

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

Trivial fix is to do that in the 'then' branch.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/cmdlib.py