From ae7fcdab7813dbb2e682b00b817e796a9c30a3f8 Mon Sep 17 00:00:00 2001 From: Lynxzh Date: Mon, 6 Jan 2014 11:45:33 +0800 Subject: [PATCH] Remove unused message from iogrp_data setup The iogrp_data is initialized during do_setup loaded. The vdisk_count is originally used but later removed. In ValueException raised, the variable is no longer required. Remove this will give a clearer message when ValueException raised. Change-Id: Ib7b6c6a870ddd7932e8da1436d615f9ee458bd93 Closes-Bug: #1266321 --- cinder/volume/drivers/storwize_svc.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cinder/volume/drivers/storwize_svc.py b/cinder/volume/drivers/storwize_svc.py index 547f38ebd..244a47329 100644 --- a/cinder/volume/drivers/storwize_svc.py +++ b/cinder/volume/drivers/storwize_svc.py @@ -253,10 +253,9 @@ class StorwizeSVCDriver(san.SanDriver): except KeyError: self._handle_keyerror('lsnode', header) except ValueError: - msg = (_('Expected integers for node_count and vdisk_count, ' - 'svcinfo lsiogrp returned: %(node)s and %(vdisk)s') % - {'node': iogrp_data['node_count'], - 'vdisk': iogrp_data['vdisk_count']}) + msg = (_('Expected integer for node_count, ' + 'svcinfo lsiogrp returned: %(node)s') % + {'node': iogrp_data['node_count']}) LOG.error(msg) raise exception.VolumeBackendAPIException(data=msg) -- 2.45.2