Merge pull request #51080 from garethgreenaway/50966_nxos_ensure_kwargs_list

[2018.3] Fix to nxos module
This commit is contained in:
Gareth J. Greenaway 2019-01-07 10:07:24 -08:00 committed by GitHub
commit 335088b96f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)