Some small improvements to the hooks environment
authorIustin Pop <iustin@google.com>
Thu, 11 Oct 2007 15:23:31 +0000 (15:23 +0000)
committerIustin Pop <iustin@google.com>
Thu, 11 Oct 2007 15:23:31 +0000 (15:23 +0000)
commit0e137c28bdb3e835ec2b0f299e97e3f88d48b240
tree45cbe3883c10d68a367fa91b7f8c5b8dc92dbc51
parent6a4aa7c195a21f94116c47dd4535a0f5092cf06a
Some small improvements to the hooks environment

For the configuration update hook, it's useful to have a consistent name
for the target of the operation. As such, the LU code is modified to
include an GANETI_OP_TARGET that points either to the cluster (name),
node name or instance name depending on the opcode.

Also, the NoHooksLU is modified such that its build env method returns
an empty (but conformant) result. This should improve things in case by
mistake this class' BuildHooksEnv is called.

Reviewed-by: imsnah
lib/cmdlib.py