From 122625c47745039457995704f7e84db3ac36e52b Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 21 Sep 2023 14:01:14 +0200 Subject: [PATCH] fix space in front of first privilege of the list --- plugins/modules/mysql_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index 75553c4..4ec59b9 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -559,11 +559,11 @@ class MySQL_Info(object): # {'PROXY', 'GRANT'} # This is because the Sanity test for 2.12 uses Python 2.6!!! if set(priv) == set(['PROXY', 'GRANT']) and user == 'root': - priv_string.append("'``@`%`: 'PROXY,GRANT'") + priv_string.append('``@`%`:PROXY,GRANT') continue unquote_db_table = db_table.replace('`', '').replace("'", '') - priv_string.append("'%s': '%s'" % (unquote_db_table, ','.join(priv))) + priv_string.append('%s:%s' % (unquote_db_table, ','.join(priv))) resource_limits = get_resource_limits(self.module, self.cursor, user, host)