From 4522a53acfe97c15ec75f4af613e133d8205b993 Mon Sep 17 00:00:00 2001 From: Krzysztof Magosa Date: Mon, 19 Jun 2017 11:10:23 +0200 Subject: [PATCH] fix false positive changed flag in rabbitmq_user module (#22507) --- lib/ansible/modules/messaging/rabbitmq_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/messaging/rabbitmq_user.py b/lib/ansible/modules/messaging/rabbitmq_user.py index 9b426fe62e..ee04078c9c 100644 --- a/lib/ansible/modules/messaging/rabbitmq_user.py +++ b/lib/ansible/modules/messaging/rabbitmq_user.py @@ -234,7 +234,7 @@ class RabbitMqUser(object): return set(self.tags) != set(self._tags) def has_permissions_modifications(self): - return self._permissions != self.permissions + return sorted(self._permissions) != sorted(self.permissions) def main(): arg_spec = dict(