From 2de3a57021de824b80cca978980b6fc89777a670 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Wed, 13 Jan 2021 09:36:23 +0300 Subject: [PATCH] mysql_user: Add SHOW_ROUTINE privilege support (#87) * mysql_user: Add SHOW_ROUTINE privilege support * add changelog fragment Co-authored-by: Andrew Klychkov --- changelogs/fragments/87-mysql_user_show_routine_support.yml | 2 ++ plugins/modules/mysql_user.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/87-mysql_user_show_routine_support.yml diff --git a/changelogs/fragments/87-mysql_user_show_routine_support.yml b/changelogs/fragments/87-mysql_user_show_routine_support.yml new file mode 100644 index 0000000..84568ee --- /dev/null +++ b/changelogs/fragments/87-mysql_user_show_routine_support.yml @@ -0,0 +1,2 @@ +bugfixes: +- mysql_user - add ``SHOW_ROUTINE`` privilege support (https://github.com/ansible-collections/community.mysql/issues/86). diff --git a/plugins/modules/mysql_user.py b/plugins/modules/mysql_user.py index 3f1f941..97940a7 100644 --- a/plugins/modules/mysql_user.py +++ b/plugins/modules/mysql_user.py @@ -338,7 +338,8 @@ VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT', 'GRANT OPTION', 'REPLICATION MASTER ADMIN', 'REPLICATION SLAVE', 'REPLICATION SLAVE ADMIN', - 'SET USER',)) + 'SET USER', + 'SHOW_ROUTINE',)) class InvalidPrivsError(Exception):