Skip to content

Commit 9df0757

Browse files
committed
Fix package for python bindings on Ubuntu 20.04
The default python version on Ubuntu 20.04 is python3 thus the current package is wrong. This changes the package to use python3-mysqldb.
1 parent 937d044 commit 9df0757

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: manifests/params.pp

+5-1
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,12 @@
246246
($::operatingsystem == 'Debian') {
247247
$xtrabackup_package_name_override = 'percona-xtrabackup-24'
248248
}
249+
if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) {
250+
$python_package_name = 'python3-mysqldb'
251+
} else {
252+
$python_package_name = 'python-mysqldb'
253+
}
249254

250-
$python_package_name = 'python-mysqldb'
251255
$ruby_package_name = $::lsbdistcodename ? {
252256
'jessie' => 'ruby-mysql',
253257
'stretch' => 'ruby-mysql2',

0 commit comments

Comments
 (0)