Skip to content

Commit bdd62dd

Browse files
authored
ensure => absent should require "install-pip"
When trying to uninstall a module, puppet whines that pip2.7 could not be found. Adding this requires, which is the same as the one for "present, installed" solves the issue.
1 parent 9526853 commit bdd62dd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

manifests/install.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
exec { "uninstall-${package}":
4343
command => "pip${python_version} uninstall ${package} -y",
4444
onlyif => "pip${python_version} freeze | cut -d= -f1 | egrep '^${package}$'",
45+
require => Exec["install-pip${python_version}"],
4546
}
4647
}
4748
}

0 commit comments

Comments
 (0)