Merge pull request #24379 from Starblade42/2015.5

Fixes an issue where Pagerduty states/modules couldn't find their profile in the Pillar
This commit is contained in:
Nicole Thomas 2015-06-04 06:41:13 -06:00
commit 52587a4fc1

View file

@ -39,7 +39,7 @@ def query(method='GET', profile=None, url=None, path='api/v1',
opts = {}
if profile is not None:
creds = opts.get(profile, {})
creds = opts.get(profile, {}) or opts.get('pillar').get(profile, {})
else:
creds = {}