Merge pull request #6911 from UtahDave/fix_pillar

Fix pylint warning about {} in argument default.
This commit is contained in:
Thomas S Hatch 2013-08-26 15:33:42 -07:00
commit 6b3b047980

View File

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