Fix py37 tests failed due to async

Change-Id: If09cc4b27da22924e9ad5a5b930ccb0abcc84a34
Closes-Bug: #1786523
This commit is contained in:
zhurong 2018-08-11 15:53:06 +08:00
parent 251c1d1309
commit 9fe87010f5
2 changed files with 3 additions and 3 deletions

View File

@ -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():

View File

@ -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',