mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
version checking had a logical error (#34333)
The current version of rabbitmq, 3.6.2 was not matched
This commit is contained in:
parent
53de70f658
commit
af83f59313
@ -317,7 +317,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