Revision 2b8f654c snf-cyclades-app/synnefo/logic/utils.py

b/snf-cyclades-app/synnefo/logic/utils.py
94 94
    """
95 95
    if not str(name).startswith(settings.BACKEND_PREFIX_ID):
96 96
        raise ValueError("Invalid Disk name: %s" % name)
97
    ns = str(name).replace(settings.BACKEND_PREFIX_ID + 'volume-', "", 1)
97
    ns = str(name).replace(settings.BACKEND_PREFIX_ID + 'vol-', "", 1)
98 98
    if not ns.isdigit():
99 99
        raise ValueError("Invalid Disk name: %s" % name)
100 100

  

Also available in: Unified diff