From 26f7d62bbf95e4bff00110ee6a66e41d1d923108 Mon Sep 17 00:00:00 2001 From: Hardik Parekh Date: Wed, 5 Oct 2016 14:28:03 +0530 Subject: [PATCH] Import haskey from keys module This patch will fix out gate. Change-Id: I83061decce22f457e0764f669b7bd9849fb639af --- mistral/workbook/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/workbook/parser.py b/mistral/workbook/parser.py index 32d1c6fa9..082d27cc4 100644 --- a/mistral/workbook/parser.py +++ b/mistral/workbook/parser.py @@ -236,7 +236,7 @@ def get_workflow_spec_by_definition_id(wf_def_id, wf_def_updated_at): def cache_workflow_spec_by_execution_id(wf_ex_id, wf_spec): with _WF_EX_CACHE_LOCK: - _WF_EX_CACHE[cachetools.hashkey(wf_ex_id)] = wf_spec + _WF_EX_CACHE[cachetools.keys.hashkey(wf_ex_id)] = wf_spec def get_wf_execution_spec_cache_size():