From 5a73631f0f19bb2825261d5c6a5081cc1f45a892 Mon Sep 17 00:00:00 2001 From: Sebastian Braun Date: Wed, 1 Jun 2016 20:23:08 +0200 Subject: [PATCH] version checking had a logical error The current version of rabbitmq, 3.6.2 was not matched --- salt/modules/rabbitmq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/rabbitmq.py b/salt/modules/rabbitmq.py index ab227e128f..eeefbcd9f6 100644 --- a/salt/modules/rabbitmq.py +++ b/salt/modules/rabbitmq.py @@ -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,