From 9fe87010f508b6f5bb8b862f81d92aed30280de0 Mon Sep 17 00:00:00 2001 From: zhurong Date: Sat, 11 Aug 2018 15:53:06 +0800 Subject: [PATCH] Fix py37 tests failed due to async Change-Id: If09cc4b27da22924e9ad5a5b930ccb0abcc84a34 Closes-Bug: #1786523 --- murano/engine/system/heat_stack.py | 4 ++-- murano/tests/unit/test_heat_stack.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/murano/engine/system/heat_stack.py b/murano/engine/system/heat_stack.py index 459462c6e..1fbf933ca 100644 --- a/murano/engine/system/heat_stack.py +++ b/murano/engine/system/heat_stack.py @@ -260,7 +260,7 @@ class HeatStack(object): self._applied = self._template == template - def push(self, async=False): + def push(self, is_async=False): if self._applied or self._template is None: return @@ -272,7 +272,7 @@ class HeatStack(object): self._template['description'] = self._description self._kill_push_thread() - if async: + if is_async: if self._push_thread is None: def cleanup(): diff --git a/murano/tests/unit/test_heat_stack.py b/murano/tests/unit/test_heat_stack.py index f9ed579a0..8265dbe41 100644 --- a/murano/tests/unit/test_heat_stack.py +++ b/murano/tests/unit/test_heat_stack.py @@ -198,7 +198,7 @@ class TestHeatStack(base.MuranoTestCase): hs._parameters = {} hs._applied = False with mock.patch('murano.dsl.dsl.get_execution_session'): - hs.push(async=True) + hs.push(is_async=True) expected_template = { 'heat_template_version': '2013-05-23',