def ensure_vhost(self, vhost):
        if not self.vhost_exists(vhost):
            self.log('Adding vhost %s' % vhost)

            self.execute('rabbitmqctl add_vhost %s' % vhost, sudo=True)

            self.log('vhost %s added!' % vhost)
            return True
        return False
Ensure the given vhost is created.
dataset/ETHPy150Open python-provy/provy/provy/more/debian/messaging/rabbitmq.py/RabbitMqRole.ensure_vhost