mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-19 17:01:26 -07:00
Apply suggestions from code review
Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
This commit is contained in:
parent
379b25e8fa
commit
682fae4125
3 changed files with 21 additions and 40 deletions
|
@ -481,9 +481,8 @@ def main():
|
|||
module.fail_json(msg="password_expire value interval \
|
||||
should be used with password_expire_interval")
|
||||
|
||||
if password_expire_interval:
|
||||
if password_expire_interval < 1:
|
||||
module.fail_json(msg="password_expire_interval value \
|
||||
if password_expire_interval and password_expire_interval < 1:
|
||||
module.fail_json(msg="password_expire_interval value \
|
||||
should be positive number")
|
||||
|
||||
cursor = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue