]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused message from iogrp_data setup
authorLynxzh <jmzhang@cn.ibm.com>
Mon, 6 Jan 2014 03:45:33 +0000 (11:45 +0800)
committerLynxzh <jmzhang@cn.ibm.com>
Wed, 8 Jan 2014 10:07:20 +0000 (18:07 +0800)
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

index 547f38ebde546ccaf50c597ce8c8e3ff1e904230..244a473291799333aba82411e064f713be6b5db2 100644 (file)
@@ -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)