def ensure_user(self, username, password, is_admin=False):
        if not self.user_exists(username):
            self.log('Setting up user %s and password' % username)

            cmd = 'rabbitmqctl add_user %s %s' % (username, password)
            self.execute(cmd, sudo=True)

            if is_admin:
                cmd = 'rabbitmqctl set_user_tags %s administrator' % (username)
                self.execute(cmd, sudo=True)

            self.log('User %s added!' % username)
            return True

        return False
Callback triggered whenever user's trying to authenticate agains a provider we don't support,
dataset/ETHPy150Open python-provy/provy/provy/more/debian/messaging/rabbitmq.py/RabbitMqRole.ensure_user--crossover with--dataset/ETHPy150Open ibagrak/algae/gae/libs/simpleauth/handler.py/SimpleAuthHandler._provider_not_supported