Ensure that creds is a dict (pagerduty)

This commit is contained in:
Joseph Hall 2015-02-05 16:20:05 -07:00
parent 03166a2630
commit 89d3cc2944

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, {})
else:
creds = {}