]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix NetApp loop in clone of NFS backed images
authorTom Barron <tpb@dyncloud.net>
Mon, 24 Aug 2015 17:21:48 +0000 (13:21 -0400)
committerTom Barron <tpb@dyncloud.net>
Wed, 9 Sep 2015 21:42:31 +0000 (21:42 +0000)
commitbb4321c61d40174b7314315568068a213697c370
treeef04b38e922029daa10ea63636ff26ea0b7fa32b
parentde64f5ad716676b7180365798efc3ea69a4fef0e
Fix NetApp loop in clone of NFS backed images

If there is a list of locations for glance images and an unsuitable
location is encountered when iterating through the list, current code
breaks out of the loop, failing to find later, valid locations.

Here we fix this issue by ignoring invalid locations and continuing
through the loop rather than breaking out when we find invalid locations.

Closes-bug: 1487074

Change-Id: Id2435ba633629367fa1bd8f339fc283f47eeb012
cinder/tests/unit/test_netapp_nfs.py
cinder/volume/drivers/netapp/dataontap/nfs_base.py