Clear rabbitmq_user pw when none is specified
This commit is contained in:
parent
7941681591
commit
465d0483eb
1 changed files with 5 additions and 1 deletions
|
@ -162,7 +162,11 @@ class RabbitMqUser(object):
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
def add(self):
|
def add(self):
|
||||||
|
if self.password is not None:
|
||||||
self._exec(['add_user', self.username, self.password])
|
self._exec(['add_user', self.username, self.password])
|
||||||
|
else
|
||||||
|
self._exec(['add_user', self.username, ''])
|
||||||
|
self._exec(['clear_password', self.username])
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
self._exec(['delete_user', self.username])
|
self._exec(['delete_user', self.username])
|
||||||
|
|
Loading…
Reference in a new issue