mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Ensure that creds is a dict (pagerduty)
This commit is contained in:
parent
03166a2630
commit
89d3cc2944
@ -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 = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user