version checking had a logical error (#34333)

The current version of rabbitmq, 3.6.2 was not matched
This commit is contained in:
Nicole Thomas 2016-06-28 11:51:36 -04:00 committed by GitHub
parent 53de70f658
commit af83f59313

View File

@ -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,