Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Master:Debian11-Uyuni-Client-Tools
venv-salt-minion
batch_async-avoid-using-fnmatch-to-match-event-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File batch_async-avoid-using-fnmatch-to-match-event-217.patch of Package venv-salt-minion
From 31fedcb3173f73fbffc3b053bc64c94a7b608118 Mon Sep 17 00:00:00 2001 From: Silvio Moioli <smoioli@suse.de> Date: Mon, 2 Mar 2020 11:23:59 +0100 Subject: [PATCH] batch_async: avoid using fnmatch to match event (#217) --- salt/cli/batch_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/cli/batch_async.py b/salt/cli/batch_async.py index 8d2601e636..1e2ac5b0d3 100644 --- a/salt/cli/batch_async.py +++ b/salt/cli/batch_async.py @@ -109,7 +109,7 @@ class BatchAsync: return mtag, data = self.event.unpack(raw, self.event.serial) for (pattern, op) in self.patterns: - if fnmatch.fnmatch(mtag, pattern): + if mtag.startswith(pattern[:-1]): minion = data["id"] if op == "ping_return": self.minions.add(minion) -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor