From: Walter A. Boring IV Date: Wed, 29 Jan 2014 23:53:53 +0000 (-0800) Subject: Fixes incorrect key in dictionary X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=dc4655a5ae5a2ad576b68f3bc7d5044e395ee49e;p=openstack-build%2Fcinder-build.git Fixes incorrect key in dictionary This is a corner case for the 3PAR driver. The dictionary has a key of 'wwn', not 'WWN'. Change-Id: Id16a54f14d195a7297ab8db8fc8e2642955338e6 Closes-Bug: #1274334 --- diff --git a/cinder/volume/drivers/san/hp/hp_3par_common.py b/cinder/volume/drivers/san/hp/hp_3par_common.py index 8f256253d..d32271c8a 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_common.py +++ b/cinder/volume/drivers/san/hp/hp_3par_common.py @@ -1075,7 +1075,7 @@ exit fc_paths = host['FCPaths'] for fc in fc_paths: for wwn in wwns: - if wwn == fc['WWN']: + if wwn == fc['wwn']: return host['name'] def terminate_connection(self, volume, hostname, wwn=None, iqn=None):