From 5e68f54a0e31b3b8d8a5ac74dd3436a918c8ef08 Mon Sep 17 00:00:00 2001 From: Franciszek Klajn Date: Tue, 12 Jun 2018 15:21:04 +0200 Subject: [PATCH] Fix Python version regex According to the rest of the code `version` (if custom) is expected to contain package name with version. --- manifests/install.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index a6dad661..d991b971 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -215,7 +215,7 @@ } } - if "${::python::version}" =~ /^3/ { #lint:ignore:only_variable_string + if "${::python::version}" =~ /^python3/ { #lint:ignore:only_variable_string $pip_category = undef $pip_package = 'python3-pip' } elsif ($::osfamily == 'RedHat') and (versioncmp($::operatingsystemmajrelease, '7') >= 0) {