Revision 83f46e8b snf-cyclades-app/synnefo/volume/snapshots.py

b/snf-cyclades-app/synnefo/volume/snapshots.py
35 35
    # Check that taking a snapshot is feasible
36 36
    if volume.machine is None:
37 37
        raise faults.BadRequest("Cannot snapshot a detached volume!")
38
    if volume.status not in ["AVAILABLE", "IN_USE"]:
39
        raise faults.BadRequest("Cannot create snapshot while volume is in"
40
                                " '%s' status" % volume.status)
38 41

  
39 42
    flavor = volume.machine.flavor
40 43
    if not flavor.disk_template.startswith("ext_"):

Also available in: Unified diff