Skip to content

Commit 7cd9f6d

Browse files
committed
adjust python version
1 parent 9ac7323 commit 7cd9f6d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

manifests/install.pp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
#
77
class python::install {
88

9-
$python = $::python::version ? {
9+
$python_version = getparam(Class['python'], 'version')
10+
$python = $python_version ? {
1011
'system' => 'python',
1112
'pypy' => 'pypy',
12-
default => "${python::version}", # lint:ignore:only_variable_string
13+
default => "${python_version}", # lint:ignore:only_variable_string
1314
}
1415

1516
$pythondev = $facts['os']['family'] ? {
@@ -180,7 +181,7 @@
180181
default: {
181182
case $facts['os']['family'] {
182183
'AIX': {
183-
if "${python::version}" =~ /^python3/ { #lint:ignore:only_variable_string
184+
if "${python_version}" =~ /^python3/ { #lint:ignore:only_variable_string
184185
class { 'python::pip::bootstap':
185186
version => 'pip3',
186187
}

0 commit comments

Comments
 (0)