mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Clear rabbitmq_user pw when none is specified
This commit is contained in:
committed by
Matt Clay
parent
7941681591
commit
465d0483eb
@@ -162,7 +162,11 @@ class RabbitMqUser(object):
|
||||
return dict()
|
||||
|
||||
def add(self):
|
||||
self._exec(['add_user', self.username, self.password])
|
||||
if self.password is not None:
|
||||
self._exec(['add_user', self.username, self.password])
|
||||
else
|
||||
self._exec(['add_user', self.username, ''])
|
||||
self._exec(['clear_password', self.username])
|
||||
|
||||
def delete(self):
|
||||
self._exec(['delete_user', self.username])
|
||||
|
||||
Reference in New Issue
Block a user