def vhost_exists(name, runas=None):
    if runas is None:
        runas = salt.utils.get_user()
    return name in list_vhosts(runas=runas)
The constructor of this class.
dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/vhost_exists--crossover with--dataset/ETHPy150Open brunobraga/termsaver/termsaverlib/screen/clock.py/ClockScreen.__init__