Browse Source

Fix py37 tests failed due to async

Change-Id: If09cc4b27da22924e9ad5a5b930ccb0abcc84a34
Closes-Bug: #1786523
zhurong 8 months ago
parent
commit
9fe87010f5
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      murano/engine/system/heat_stack.py
  2. 1
    1
      murano/tests/unit/test_heat_stack.py

+ 2
- 2
murano/engine/system/heat_stack.py View File

@@ -260,7 +260,7 @@ class HeatStack(object):
260 260
 
261 261
         self._applied = self._template == template
262 262
 
263
-    def push(self, async=False):
263
+    def push(self, is_async=False):
264 264
         if self._applied or self._template is None:
265 265
             return
266 266
 
@@ -272,7 +272,7 @@ class HeatStack(object):
272 272
             self._template['description'] = self._description
273 273
 
274 274
         self._kill_push_thread()
275
-        if async:
275
+        if is_async:
276 276
             if self._push_thread is None:
277 277
 
278 278
                 def cleanup():

+ 1
- 1
murano/tests/unit/test_heat_stack.py View File

@@ -198,7 +198,7 @@ class TestHeatStack(base.MuranoTestCase):
198 198
         hs._parameters = {}
199 199
         hs._applied = False
200 200
         with mock.patch('murano.dsl.dsl.get_execution_session'):
201
-            hs.push(async=True)
201
+            hs.push(is_async=True)
202 202
 
203 203
         expected_template = {
204 204
             'heat_template_version': '2013-05-23',

Loading…
Cancel
Save