From 8964444eebecf65c1a35a0c607fbb3024866a218 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Mon, 30 Nov 2020 11:32:43 -0500 Subject: [PATCH] [fix] Correct count print in mysql_conn --- salt/_modules/so.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/_modules/so.py b/salt/_modules/so.py index fb61f3460..bbbbe4ea8 100644 --- a/salt/_modules/so.py +++ b/salt/_modules/so.py @@ -37,7 +37,7 @@ def mysql_conn(retry): user='root', passwd=__salt__['pillar.get']('secrets:mysql') ) - log.debug(f'Connected to MySQL server on {mainip} after {i} attempts.') + log.debug(f'Connected to MySQL server on {mainip} after {i+1} attempts.') db.query("""SELECT 1;""") log.debug(f'Successfully completed query against MySQL server on {mainip}')