Skip to content

Commit

Permalink
version checking had a logical error (#34333)
Browse files Browse the repository at this point in the history
The current version of rabbitmq, 3.6.2 was not matched
  • Loading branch information
Nicole Thomas committed Jun 28, 2016
1 parent 53de70f commit af83f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit af83f59

Please sign in to comment.