pillarenv argument should default to None and not the value from opts

This commit is contained in:
Erik Johnson 2018-02-22 10:01:40 -06:00
parent 2a185855ea
commit 467ff841cd
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -82,8 +82,8 @@ def show_pillar(minion='*', **kwargs):
pillar = runner.cmd('pillar.show_pillar', [])
print(pillar)
'''
pillarenv = None
saltenv = 'base'
pillarenv = __opts__.get('pillarenv')
id_, grains, _ = salt.utils.minions.get_minion_data(minion, __opts__)
if grains is None:
grains = {'fqdn': minion}