Skip to content

Commit

Permalink
nspawn.py: Fix bad keyword assignment
Browse files Browse the repository at this point in the history
Currently every keyword for _pull_image is considered a bad keyword.

```
% salt node nspawn.pull_tar url bar
ERROR executing 'nspawn.pull_tar': The following invalid keyword arguments were passed: verify=False.
```
  • Loading branch information
llua committed Feb 28, 2016
1 parent 554eb2d commit 17f7a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/nspawn.py
Expand Up @@ -1319,7 +1319,7 @@ def _pull_image(pull_type, image, name, **kwargs):

bad_kwargs = [x for x in kwargs
if not x.startswith('__')
or x not in valid_kwargs]
and x not in valid_kwargs]

if bad_kwargs:
_invalid_kwargs(*bad_kwargs, **kwargs)
Expand Down

0 comments on commit 17f7a2d

Please sign in to comment.