cmdlib: Factorize checking acquired node group locks
authorMichael Hanselmann <hansmi@google.com>
Thu, 22 Mar 2012 16:56:38 +0000 (17:56 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 22 Mar 2012 18:44:08 +0000 (19:44 +0100)
commitc85b15c1c41a8019210f28e68b39614e793a5e25
tree078c77dc27dc481ad886c8c698b6df057e7973c7
parenta20e47682d1fa84b660c874eee4f86115485789c
cmdlib: Factorize checking acquired node group locks

The “cur_group_uuid” parameter is optional to prepare for using the
factorized code from LUInstanceQueryData.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py