From bec0a06a069404c5043b1c59e3fe7cce2df177d3 Mon Sep 17 00:00:00 2001 From: Mihai Dinca 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 6d0dca1da5..754c257b36 100644 --- a/salt/cli/batch_async.py +++ b/salt/cli/batch_async.py @@ -227,7 +227,6 @@ class BatchAsync(object): self.event.unsubscribe(pattern, match_type='glob') del self gc.collect() - yield @tornado.gen.coroutine def schedule_next(self): @@ -263,7 +262,6 @@ class BatchAsync(object): else: yield self.end_batch() gc.collect() - yield def __del__(self): self.local = None -- 2.16.4