Skip to content

Commit 971d569

Browse files
authored
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]'
1 parent 9a482db commit 971d569

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/pip.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
default: {
261261
# Anti-action, uninstall.
262262
exec { "pip_uninstall_${name}":
263-
command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag}",
263+
command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag} ${name}",
264264
onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}",
265265
user => $owner,
266266
group => $group,

0 commit comments

Comments
 (0)