File fix-regressions-from-not-calling-load_args_and_kwarg.patch of Package salt

From debf3dbc40afd880a1d2a3372448f8e12287403c Mon Sep 17 00:00:00 2001
From: Seth House <seth@eseth.com>
Date: Thu, 15 Jun 2017 16:29:26 -0600
Subject: [PATCH] Fix regressions from not calling load_args_and_kwargs
 (bsc#1087365)

http://github.com/saltstack/salt/pull/41786

PR #39472 regressed ignoring invalid kwargs (#40845, #41733).

Add test to check that runners ignore invalid kwargs

I dunno if this is what we want long-term but this tests current
behavior.

Restore sending __current_eauth_* through to the function

I had forgotten this was originally added in #32133 specifically so that
it would be availble to the called function.
---
 salt/runner.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/salt/runner.py b/salt/runner.py
index 1557edbae4..0eedec55b7 100644
--- a/salt/runner.py
+++ b/salt/runner.py
@@ -74,7 +74,6 @@ class RunnerClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
 
         eauth_creds = dict([(i, low.pop(i)) for i in [
             'username', 'password', 'eauth', 'token', 'client', 'user', 'key',
-            '__current_eauth_groups', '__current_eauth_user',
         ] if i in low])
 
         # Separate the new-style args/kwargs.
-- 
2.17.1


openSUSE Build Service is sponsored by