Added timeout property

This commit is contained in:
tengqm 2014-12-17 01:52:17 +08:00
parent 5c2e19b801
commit cd9cb714cd

View File

@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
class Action(object):
'''
@ -26,6 +28,10 @@ class Action(object):
# the context should contain a request ID
self.request_id = context['request_id']
# TODO: make action timeout configurable
# heat.common.default_action_timeout
self.timeout = cfg.CONF.default_action_timeout
def execute(self, **kwargs):
return NotImplemented