Merge pull request #204 from andsens/rabbitmq-clear-user-pw

Clear rabbitmq_user pw when none is specified
reviewable/pr18780/r1
Brian Coca 10 years ago
commit edef1c8484

@ -162,7 +162,11 @@ class RabbitMqUser(object):
return dict() return dict()
def add(self): 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): def delete(self):
self._exec(['delete_user', self.username]) self._exec(['delete_user', self.username])

Loading…
Cancel
Save