From dc4655a5ae5a2ad576b68f3bc7d5044e395ee49e Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Wed, 29 Jan 2014 15:53:53 -0800 Subject: [PATCH] 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 --- cinder/volume/drivers/san/hp/hp_3par_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/san/hp/hp_3par_common.py b/cinder/volume/drivers/san/hp/hp_3par_common.py index 8f256253d06..d32271c8a3e 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):