Re-raise InvalidPrivsError when granting privileges

This commit is contained in:
R.Sicart 2021-11-01 16:07:37 +01:00
commit c8d93c796f
3 changed files with 6 additions and 3 deletions

View file

@ -112,7 +112,7 @@
assert:
that:
- "result.changed == false"
- "'Illegal privilege' in result.msg or 'You have an error in your SQL syntax;' in result.msg"
- "'Error granting privileges' in result.msg"
when: enable_check_mode == 'no'
##########

View file

@ -193,7 +193,7 @@
assert:
that:
- "result.changed == false"
- "'Illegal privilege' in result.msg or 'You have an error in your SQL syntax;' in result.msg"
- "'Error granting privileges' in result.msg"
- name: remove username
mysql_user: