Przeglądaj źródła

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

Nashwan Azhari 9 lat temu
rodzic
commit
f5053abfd8
1 zmienionych plików z 1 dodań i 0 usunięć
  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 "
                       "deletion attempts will be made.",
                       snapshot_id)
+            return
 
         LOG.debug('Volume snapshot %(id)s status: %(status)s. '
                   'Waiting for status: "%(expected_status)s".',