Fix py37 tests failed due to async
Change-Id: If09cc4b27da22924e9ad5a5b930ccb0abcc84a34 Closes-Bug: #1786523
This commit is contained in:
parent
251c1d1309
commit
9fe87010f5
|
@ -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():
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue