Explorar el Código

Added premature return on error in wait_for_volume_snapshot helper in OpenStack providers.

Nashwan Azhari hace 9 años
padre
commit
f5053abfd8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      coriolis/providers/openstack/common.py

+ 1 - 0
coriolis/providers/openstack/common.py

@@ -242,6 +242,7 @@ def wait_for_volume_snapshot(cinder, snapshot_id,
                       "of the Cinder driver being used, so no further "
                       "of the Cinder driver being used, so no further "
                       "deletion attempts will be made.",
                       "deletion attempts will be made.",
                       snapshot_id)
                       snapshot_id)
+            return
 
 
         LOG.debug('Volume snapshot %(id)s status: %(status)s. '
         LOG.debug('Volume snapshot %(id)s status: %(status)s. '
                   'Waiting for status: "%(expected_status)s".',
                   'Waiting for status: "%(expected_status)s".',