SHA256
1
0
forked from pool/salt
salt/remove-unnecessary-yield-causing-badyielderror-bsc-1.patch

35 lines
877 B
Diff

From a46471fcc26775f924599a5ef27e9716987739e4 Mon Sep 17 00:00:00 2001
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
index b2d04f9d4d..f3d92b88f1 100644
--- a/salt/cli/batch_async.py
+++ b/salt/cli/batch_async.py
@@ -238,7 +238,6 @@ class BatchAsync:
self.event.unsubscribe(pattern, match_type="glob")
del self
gc.collect()
- yield
@tornado.gen.coroutine
def schedule_next(self):
@@ -275,7 +274,6 @@ class BatchAsync:
else:
yield self.end_batch()
gc.collect()
- yield
def __del__(self):
self.local = None
--
2.29.2