Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Master:CentOS6-Uyuni-Client-Tools
salt
initialize-__context__-retcode-for-functions-ha...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File initialize-__context__-retcode-for-functions-handled.patch of Package salt
From ed75274af3ea20427784a18adf7c9965cf521c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Tue, 24 Apr 2018 13:50:49 +0100 Subject: [PATCH] Initialize __context__ retcode for functions handled via schedule util module --- salt/utils/schedule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py index 31e3c1aaf1..afed632a39 100644 --- a/salt/utils/schedule.py +++ b/salt/utils/schedule.py @@ -848,6 +848,7 @@ class Schedule(object): if key is not 'kwargs': kwargs['__pub_{0}'.format(key)] = copy.deepcopy(val) + self.functions.pack['__context__']['retcode'] = 0 ret['return'] = self.functions[func](*args, **kwargs) # runners do not provide retcode -- 2.17.1
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