From 3d9df81d944d21306413fabe59592ed0ee0516da Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Tue, 11 Mar 2025 13:09:05 +0200 Subject: [PATCH] Based on the previous CI build is_role is not (always?) present so checking for it, right now with pprint of the line for debug purposes Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys --- plugins/modules/mysql_info.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index e421c59..17ab591 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -653,8 +653,11 @@ class MySQL_Info(object): if authentications: output_dict.update(authentications[0]) - if not line['is_role']: + if line.get('is_role') and not line['is_role']: output_dict['locked'] = user_is_locked(self.cursor, user, host) + else: + from pprint import pprint + pprint(line) # TODO password_option # but both are not supported by mysql_user atm. So no point yet.