From c53b0d9a22d5bddabe7c923b6683238064ba2b42 Mon Sep 17 00:00:00 2001 From: Nitin Madhok Date: Thu, 18 Jun 2015 05:14:25 -0400 Subject: [PATCH] Backporting PR #24777 to 2014.7 branch --- salt/cli/batch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/cli/batch.py b/salt/cli/batch.py index e6d853c4c1..d951387c63 100644 --- a/salt/cli/batch.py +++ b/salt/cli/batch.py @@ -170,7 +170,8 @@ class Batch(object): parts[minion]['ret'] = {} for minion, data in parts.items(): - active.remove(minion) + if minion in active: + active.remove(minion) if self.opts.get('raw'): yield data else: