]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes incorrect key in dictionary
authorWalter A. Boring IV <walter.boring@hp.com>
Wed, 29 Jan 2014 23:53:53 +0000 (15:53 -0800)
committerWalter A. Boring IV <walter.boring@hp.com>
Wed, 29 Jan 2014 23:53:53 +0000 (15:53 -0800)
This is a corner case for the 3PAR driver.
The dictionary has a key of 'wwn', not 'WWN'.

Change-Id: Id16a54f14d195a7297ab8db8fc8e2642955338e6
Closes-Bug: #1274334

cinder/volume/drivers/san/hp/hp_3par_common.py

index 8f256253d06e10f2a2d356e31bb3539f8985f976..d32271c8a3e4a0b8bd11a110acaaf531e07d9200 100644 (file)
@@ -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):