Skip to content

Commit 34aed59

Browse files
committed
Merge pull request ganglia#138 from tomasruprich/master
Custom mysql port and timeout integer fix
2 parents ff02e90 + b4060c1 commit 34aed59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mysqld/python_modules/mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ def metric_init(params):
378378
host = params.get('host', 'localhost'),
379379
user = params.get('user'),
380380
passwd = params.get('passwd'),
381-
port = params.get('port', 3306),
382-
connect_timeout = params.get('timeout', 30),
381+
port = int(params.get('port', 3306)),
382+
connect_timeout = int(params.get('timeout', 30)),
383383
)
384384
if params.get('unix_socket', '') != '':
385385
mysql_conn_opts['unix_socket'] = params.get('unix_socket')

0 commit comments

Comments
 (0)