Skip to content

Commit

Permalink
Use ensure_packages
Browse files Browse the repository at this point in the history
to create two or more venvs without duplicate declaration error
  • Loading branch information
krissik authored and jradmacher committed Feb 12, 2019
1 parent e784147 commit 5ea5621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/pyvenv.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
case $facts['lsbdistcodename'] {
'xenial','bionic','cosmic','disco',
'jessie','stretch','buster': {
package {$python3_venv_package:
ensure_packages ($python3_venv_package, {
before => File[$venv_dir],
}
})
}
default: {}
}
Expand Down

0 comments on commit 5ea5621

Please sign in to comment.