]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
EMC VMAX - Fix for randomly selecting a portgroup
authorHelen Walsh <helen.walsh@emc.com>
Sun, 8 Nov 2015 20:38:34 +0000 (20:38 +0000)
committerHelen Walsh <helen.walsh@emc.com>
Mon, 7 Dec 2015 12:54:25 +0000 (12:54 +0000)
commit415135d798cfb926f9ff258bc571de49587177bf
tree8c40a7ef20ae2bc296d5cee4cdc12bbfe55851f9
parent6c878775fb100f5c671d32768795b30e134d9a99
EMC VMAX - Fix for randomly selecting a portgroup

Before now the utils function was always returning the first
portgroup in the list.  This fix ensures a port group is
randomly selected from the list, where more than one value
is in the list.

Closes-Bug: #1501919
Change-Id: I49020a192f62bc75bca26ea0d206e9ed7c700195
cinder/tests/unit/test_emc_vmax.py
cinder/volume/drivers/emc/emc_vmax_fc.py
cinder/volume/drivers/emc/emc_vmax_iscsi.py
cinder/volume/drivers/emc/emc_vmax_utils.py