Skip to content

Commit

Permalink
Use normalized version number with versioncmp()
Browse files Browse the repository at this point in the history
Allows the python3_version fact to be bypassed fully.
  • Loading branch information
bodgit committed Apr 10, 2019
1 parent 5f6f76f commit 4d65c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/pyvenv.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}

# pyvenv is deprecated since 3.6 and will be removed in 3.8
if (versioncmp($facts['python3_version'], '3.6') >=0) {
if (versioncmp($normalized_python_version, '3.6') >=0) {
$virtualenv_cmd = "${python::exec_prefix}python${normalized_python_version} -m venv"
} else {
$virtualenv_cmd = "${python::exec_prefix}pyvenv-${normalized_python_version}"
Expand Down

0 comments on commit 4d65c1c

Please sign in to comment.