def url(value):
    if not url_regex.search(value):
        message = '{0} is not a valid URL'
        if url_regex.search('http://' + value):
            message += '. Did you mean: http://{0}'
        raise ValueError(message.format(value))
    return value
Activate a block device for an instance.
dataset/ETHPy150Open noirbizarre/flask-restplus/flask_restplus/inputs.py/url--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/BlockdevAssemble