mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #6911 from UtahDave/fix_pillar
Fix pylint warning about {} in argument default.
This commit is contained in:
commit
6b3b047980
@ -98,7 +98,10 @@ class Pillar(object):
|
||||
opts = dict(opts_in)
|
||||
opts['file_roots'] = opts['pillar_roots']
|
||||
opts['file_client'] = 'local'
|
||||
opts['grains'] = grains
|
||||
if not grains:
|
||||
opts['grains'] = {}
|
||||
else:
|
||||
opts['grains'] = grains
|
||||
opts['id'] = id_
|
||||
if 'environment' not in opts:
|
||||
opts['environment'] = env
|
||||
|
Loading…
Reference in New Issue
Block a user