0aa0223de4
- Fix minion scheduler to return a 'retcode' attribute (bsc#1089112) - Fix for logging during network interface querying (bsc#1087581) - Fix rhel packages requires both net-tools and iproute (bsc#1087055) - Added: * initialize-__context__-retcode-for-functions-handled.patch - Modified: * fix-for-errno-0-resolver-error-0-no-error-bsc-108758.patch - Fix patchinstall on yum module. Bad comparison (bsc#1087278) - Added: * provide-kwargs-to-pkg_resource.parse_targets-require.patch - Strip trailing commas on Linux user's GECOS fields (bsc#1089362) - Fallback to PyMySQL (bsc#1087891) - Improved test for fqdns - Update SaltSSH patch - Fix for [Errno 0] Resolver Error 0 (no error) (bsc#1087581) * Lintfix: PEP8 ident * Use proper levels of the error handling, use proper log formatting. * Fix unit test for reversed fqdns return data - Added: * strip-trailing-commas-on-linux-user-gecos-fields.patch * fall-back-to-pymysql.patch * fix-for-errno-0-resolver-error-0-no-error-bsc-108758.patch - Modified: * add-saltssh-multi-version-support-across-python-inte.patch OBS-URL: https://build.opensuse.org/request/show/601028 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=119
28 lines
897 B
Diff
28 lines
897 B
Diff
From c374feb62af75dfe18e8c81fb9cb556d678487ce 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 de057477a3..6cb3ce0ef8 100644
|
|
--- a/salt/utils/schedule.py
|
|
+++ b/salt/utils/schedule.py
|
|
@@ -701,6 +701,7 @@ class Schedule(object):
|
|
for global_key, value in six.iteritems(func_globals):
|
|
self.functions[mod_name].__globals__[global_key] = value
|
|
|
|
+ self.functions.pack['__context__']['retcode'] = 0
|
|
ret['return'] = self.functions[func](*args, **kwargs)
|
|
|
|
if not self.standalone:
|
|
--
|
|
2.15.1
|
|
|
|
|