Clear rabbitmq_user pw when none is specified

This commit is contained in:
Anders Ingemann 2014-10-24 13:41:29 +02:00
parent 0e79910f02
commit 3795ab0379

View file

@ -162,7 +162,11 @@ class RabbitMqUser(object):
return dict()
def add(self):
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])