def str_replace(data):
    for key, value in data.items():
        if isinstance(value, (str, unicode)):
            data[key] = value.format(**data)
Return whether the vhost exists based on rabbitmqctl list_vhosts.
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/program/base.py/str_replace--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/vhost_exists