From 2230a670d06ef01e337b0f4474670e6415c08451 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 13 Sep 2013 16:25:33 -0700 Subject: [PATCH] despite the name, pkg_list is a dict; initialize accordingly --- salt/states/pip_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py index 726319bb58..277ef3ee97 100644 --- a/salt/states/pip_state.py +++ b/salt/states/pip_state.py @@ -327,7 +327,7 @@ def installed(name, ret['comment'] = ' '.join(comments) else: if not prefix: - pkg_list = [] + pkg_list = {} else: pkg_list = __salt__['pip.list']( prefix, bin_env, user=user, cwd=cwd