Use __opts__.get

This commit is contained in:
Kyle Kelley 2014-01-28 14:27:29 -07:00
parent 7b50bd1352
commit 3d144e9e7a

View file

@ -80,7 +80,7 @@ def get_salt_vars():
__pillar__ = salt.pillar.get_pillar(
__opts__,
__grains__,
__opts__['id'],
__opts__.get('id'),
__opts__.get('environment'),
).compile_pillar()