From 89d3cc29449b2a98b66c5e15bca6a6254380c03a Mon Sep 17 00:00:00 2001 From: Joseph Hall Date: Thu, 5 Feb 2015 16:20:05 -0700 Subject: [PATCH] Ensure that creds is a dict (pagerduty) --- salt/utils/pagerduty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utils/pagerduty.py b/salt/utils/pagerduty.py index 078105e969..911e4dfd0d 100644 --- a/salt/utils/pagerduty.py +++ b/salt/utils/pagerduty.py @@ -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 = {}