Commit 809a055b authored by Klaus Aehlig's avatar Klaus Aehlig

Initialize self.needed_locks

Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarHelga Velroyen <>
parent 247837c3
......@@ -109,6 +109,7 @@ class LUTestDelay(NoHooksLU):
This expands the node list, if any.
self.needed_locks = {}
if self.op.duration <= 0:
raise errors.OpPrereqError("Duration must be greater than zero")
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