File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ bugfixes :
2+ - module_utils/mysql.py - Proxysql version suffix may not be an integer (https://github.com/ansible-collections/community.proxysql/pull/96).
Original file line number Diff line number Diff line change @@ -45,15 +45,16 @@ def _version(cursor):
4545 res = cursor .fetchone ()
4646
4747 # 2.2.0-72-ge14accd
48- raw_version = res .get ('version()' ).split ('-' )
48+ # 2.3.2-percona-1.1
49+ raw_version = res .get ('version()' ).split ('-' , 1 )
4950 _version = raw_version [0 ].split ('.' )
5051
5152 version = dict ()
5253 version ['full' ] = res .get ('version()' )
5354 version ['major' ] = int (_version [0 ])
5455 version ['minor' ] = int (_version [1 ])
5556 version ['release' ] = int (_version [2 ])
56- version ['suffix' ] = int ( raw_version [1 ])
57+ version ['suffix' ] = raw_version [1 ]
5758
5859 return version
5960
You can’t perform that action at this time.
0 commit comments