Fix type of 'node_whitelist' request parameter
authorChristos Stavrakakis <cstavr@grnet.gr>
Fri, 18 Jan 2013 14:44:13 +0000 (16:44 +0200)
committerGuido Trotter <ultrotter@google.com>
Fri, 18 Jan 2013 15:12:44 +0000 (16:12 +0100)
commit525f0f984eec8905b4dbf2b744db2c2882b84787
tree933bb1809497290741a1f1651c062b2ddf10ab5d
parent347fa0f19d6e7ef8c1c85b797d7b0ec1c6ee290e
Fix type of 'node_whitelist' request parameter

If opportunistic_locking is used, then 'node_whitelist' parameter passed
to the allocator is set to the LU's owned node locks. However, LU owned_locks
has type of 'set' while IReqInstanceAlloc expects type of
'ht.TMaybeListOf(ht.TNonEmptyString)'.

Signed-off-by: Christos Stavrakakis <cstavr@grnet.gr>
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py