Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:saltstack:products:testing
py27-compat-salt
fix-recursion-false-detection-in-payload-bsc-11...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-recursion-false-detection-in-payload-bsc-1180101.patch of Package py27-compat-salt
From ca5c012f13dabb99044b524eb800aa078bafccb0 Mon Sep 17 00:00:00 2001 From: Victor Zhestkov <35733135+vzhestkov@users.noreply.github.com> Date: Thu, 18 Feb 2021 15:32:22 +0300 Subject: [PATCH] Fix recursion false detection in payload (bsc#1180101) (#306) --- salt/payload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/payload.py b/salt/payload.py index 37397a6672..80ca695d6a 100644 --- a/salt/payload.py +++ b/salt/payload.py @@ -197,7 +197,7 @@ class Serial(object): def verylong_encoder(obj, context): # Make sure we catch recursion here. objid = id(obj) - if objid in context: + if objid in context and isinstance(obj, (dict, list, tuple)): return '<Recursion on {} with id={}>'.format(type(obj).__name__, id(obj)) context.add(objid) -- 2.30.0
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