diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_user.py b/lib/ansible/modules/extras/messaging/rabbitmq_user.py index b19ec1fc097..f494ce802d9 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_user.py +++ b/lib/ansible/modules/extras/messaging/rabbitmq_user.py @@ -164,7 +164,7 @@ class RabbitMqUser(object): def add(self): if self.password is not None: self._exec(['add_user', self.username, self.password]) - else + else: self._exec(['add_user', self.username, '']) self._exec(['clear_password', self.username])