2021-01-08 13:41:50 +01:00
|
|
|
From a46471fcc26775f924599a5ef27e9716987739e4 Mon Sep 17 00:00:00 2001
|
2019-11-08 10:16:30 +01:00
|
|
|
From: Mihai Dinca <mdinca@suse.de>
|
|
|
|
Date: Wed, 30 Oct 2019 10:19:12 +0100
|
|
|
|
Subject: [PATCH] Remove unnecessary yield causing BadYieldError
|
|
|
|
(bsc#1154620)
|
|
|
|
|
|
|
|
---
|
|
|
|
salt/cli/batch_async.py | 2 --
|
|
|
|
1 file changed, 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/salt/cli/batch_async.py b/salt/cli/batch_async.py
|
2021-01-08 13:41:50 +01:00
|
|
|
index b2d04f9d4d..f3d92b88f1 100644
|
2019-11-08 10:16:30 +01:00
|
|
|
--- a/salt/cli/batch_async.py
|
|
|
|
+++ b/salt/cli/batch_async.py
|
2021-01-08 13:41:50 +01:00
|
|
|
@@ -238,7 +238,6 @@ class BatchAsync:
|
|
|
|
self.event.unsubscribe(pattern, match_type="glob")
|
2019-11-08 10:16:30 +01:00
|
|
|
del self
|
|
|
|
gc.collect()
|
|
|
|
- yield
|
|
|
|
|
|
|
|
@tornado.gen.coroutine
|
|
|
|
def schedule_next(self):
|
2021-01-08 13:41:50 +01:00
|
|
|
@@ -275,7 +274,6 @@ class BatchAsync:
|
2019-11-08 10:16:30 +01:00
|
|
|
else:
|
|
|
|
yield self.end_batch()
|
|
|
|
gc.collect()
|
|
|
|
- yield
|
|
|
|
|
|
|
|
def __del__(self):
|
|
|
|
self.local = None
|
|
|
|
--
|
2021-01-08 13:41:50 +01:00
|
|
|
2.29.2
|
2019-11-08 10:16:30 +01:00
|
|
|
|
|
|
|
|