From 971d56985462d079a3c8517791c61abceac96c36 Mon Sep 17 00:00:00 2001 From: Shawn Zhou Date: Wed, 2 Nov 2016 13:08:18 -0700 Subject: [PATCH] Add name of package to pip uninstall command Without this fix, "ensure => absent" resulted in error: 'Error: echo y | pip uninstall returned 1 instead of one of [0]' --- manifests/pip.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/pip.pp b/manifests/pip.pp index 6dd01017..1ea2a76a 100644 --- a/manifests/pip.pp +++ b/manifests/pip.pp @@ -260,7 +260,7 @@ default: { # Anti-action, uninstall. exec { "pip_uninstall_${name}": - command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag}", + command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag} ${name}", onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}", user => $owner, group => $group,