瀏覽代碼

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

Nashwan Azhari 9 年之前
父節點
當前提交
f5053abfd8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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".',