mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pylint error
This commit is contained in:
parent
d5b1b60b99
commit
1f68ce05bc
1 changed files with 2 additions and 1 deletions
|
@ -1462,7 +1462,8 @@ class Cloud(object):
|
|||
|
||||
if kwargs:
|
||||
argnames = inspect.getargspec(self.clouds[fun]).args
|
||||
[argnames.pop(0) for _ in inspect.getargspec(self.clouds[fun]).defaults]
|
||||
for _ in inspect.getargspec(self.clouds[fun]).defaults:
|
||||
argnames.pop(0)
|
||||
kws = {}
|
||||
for kwarg in argnames:
|
||||
kws[kwarg] = kwargs.get(kwarg, None)
|
||||
|
|
Loading…
Add table
Reference in a new issue