mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #33734 from glomium/issue33588
modules/rabbitmq.py version checking had a logical error
This commit is contained in:
commit
3f4d4de9ea
@ -318,7 +318,7 @@ def check_password(name, password, runas=None):
|
||||
runas = salt.utils.get_user()
|
||||
|
||||
# rabbitmq introduced a native api to check a username and password in version 3.5.7.
|
||||
if version[0] >= 3 and version[1] >= 5 and version[2] >= 7:
|
||||
if tuple(version) >= (3, 5, 7):
|
||||
res = __salt__['cmd.run'](
|
||||
['rabbitmqctl', 'authenticate_user', name, password],
|
||||
runas=runas,
|
||||
|
Loading…
Reference in New Issue
Block a user