Browse Source

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
tags/2014.1.b3
Walter A. Boring IV 5 years ago
parent
commit
dc4655a5ae
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cinder/volume/drivers/san/hp/hp_3par_common.py

+ 1
- 1
cinder/volume/drivers/san/hp/hp_3par_common.py View File

@@ -1075,7 +1075,7 @@ exit
1075 1075
                 fc_paths = host['FCPaths']
1076 1076
                 for fc in fc_paths:
1077 1077
                     for wwn in wwns:
1078
-                        if wwn == fc['WWN']:
1078
+                        if wwn == fc['wwn']:
1079 1079
                             return host['name']
1080 1080
 
1081 1081
     def terminate_connection(self, volume, hostname, wwn=None, iqn=None):

Loading…
Cancel
Save