LU execution: implement dry-run framework
authorIustin Pop <iustin@google.com>
Fri, 19 Jun 2009 12:09:19 +0000 (14:09 +0200)
committerIustin Pop <iustin@google.com>
Fri, 19 Jun 2009 13:24:07 +0000 (15:24 +0200)
commit207774131724caaf0849450a19fbb207cf5655f4
tree96d66952fbefac4e5694dbb22f91c7fac3b2ed00
parent4f05fd3bdb49a9f1628b9915afde3c0d83367f6d
LU execution: implement dry-run framework

This patch adds a new (global) opcode flag 'dry_run' which, when True,
causes early exit from the LU workflow, returning a special value from
the LU object (initialized in the parent LogicalUnit class, and which if
not overriden from child LUs will be None).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py
lib/mcpu.py
lib/opcodes.py