Revision 8ad0da1e lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
957 | 957 |
hm = lu.proc.BuildHooksManager(lu) |
958 | 958 |
try: |
959 | 959 |
hm.RunPhase(constants.HOOKS_PHASE_POST, nodes=[node_name]) |
960 |
except: |
|
961 |
# pylint: disable=W0702 |
|
962 |
lu.LogWarning("Errors occurred running hooks on %s" % node_name) |
|
960 |
except Exception, err: # pylint: disable=W0703 |
|
961 |
lu.LogWarning("Errors occurred running hooks on %s: %s" % (node_name, err)) |
|
963 | 962 |
|
964 | 963 |
|
965 | 964 |
def _CheckOutputFields(static, dynamic, selected): |
Also available in: Unified diff