• Iustin Pop's avatar
    Some small improvements to the hooks environment · 0e137c28
    Iustin Pop authored
    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
cmdlib.py 121 KB