heat/heat/api/middleware
huangtianhua 18ded430d0 Return error message if validate fail when clearing hook
There are some situations:
1. User can run the command "heat hook-clear" on any
resource in the stack, even if there is no hook
defined on it, and no error or warning message is returned.
2. User run the command "heat hook-clear" on resource
to clear the hook which resource unset, and no error or
warning message is returned.
3. User run the command "heat hook-clear" on resource
even if the resource's action is not support to signal, and
no error or warning message is returned.
4. User run the command "heat hook-clear" to clear invalid
hooks, and no error or warnning message is returned.

This patch will check the situations above before call
resource.signal, and will return error messages to user.

Change-Id: Ifb9befad864ebe1bb5f8b419b95d1b3a95530573
Closes-Bug: #1472515
2015-09-09 14:52:37 +08:00
..
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 20:29:31 +08:00
fault.py Return error message if validate fail when clearing hook 2015-09-09 14:52:37 +08:00
ssl.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version_negotiation.py Move logging to use oslo_log library 2015-02-17 09:23:34 +00:00