mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-26 20:31:28 -07:00
Make dictionary comprehension 2.6 compatible
This commit is contained in:
parent
5646003189
commit
46d7f4106e
1 changed files with 1 additions and 1 deletions
|
@ -797,7 +797,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted,
|
||||||
module.warn(note)
|
module.warn(note)
|
||||||
module.warn("Account locking settings are being ignored.")
|
module.warn("Account locking settings are being ignored.")
|
||||||
current_locking = get_account_locking(cursor, user, host)
|
current_locking = get_account_locking(cursor, user, host)
|
||||||
clear_locking = {x: y for x, y in locking.items() if y != '0'}
|
clear_locking = dict((x, y) for x, y in locking.items() if y != '0')
|
||||||
if current_locking != clear_locking:
|
if current_locking != clear_locking:
|
||||||
msg = "Account locking updated"
|
msg = "Account locking updated"
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue