mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ensure kwargs is a list before we attempt to loop through. Similar fix to 430c462f34
in the proxy module.
This commit is contained in:
parent
aeeb047f18
commit
629dc252c2
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ def cmd(command, *args, **kwargs):
|
|||
proxy_cmd = '.'.join([proxy_prefix, command])
|
||||
if proxy_cmd not in __proxy__:
|
||||
return False
|
||||
for k in kwargs:
|
||||
for k in list(kwargs):
|
||||
if k.startswith('__pub_'):
|
||||
kwargs.pop(k)
|
||||
return __proxy__[proxy_cmd](*args, **kwargs)
|
||||
|
|
Loading…
Add table
Reference in a new issue