From b0e7078402c039fb49c9e3117eb332bcf9357ca4 Mon Sep 17 00:00:00 2001 From: Ryan Lane Date: Fri, 27 Mar 2015 16:01:46 -0700 Subject: [PATCH] Fix for grafana dict profiles --- salt/states/grafana.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/states/grafana.py b/salt/states/grafana.py index 7eb7adea7a..f11eb005d6 100644 --- a/salt/states/grafana.py +++ b/salt/states/grafana.py @@ -190,6 +190,8 @@ def _parse_profile(profile): if not _profile: msg = 'Pillar key for profile {0} not found.'.format(profile) raise SaltInvocationError(msg) + else: + _profile = profile hosts = _profile.get('hosts') index = _profile.get('index') return (hosts, index)