Browse Source

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
tags/2014.1.b2
Lynxzh 5 years ago
parent
commit
ae7fcdab78
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      cinder/volume/drivers/storwize_svc.py

+ 3
- 4
cinder/volume/drivers/storwize_svc.py View File

@@ -253,10 +253,9 @@ class StorwizeSVCDriver(san.SanDriver):
253 253
             except KeyError:
254 254
                 self._handle_keyerror('lsnode', header)
255 255
             except ValueError:
256
-                msg = (_('Expected integers for node_count and vdisk_count, '
257
-                         'svcinfo lsiogrp returned: %(node)s and %(vdisk)s') %
258
-                       {'node': iogrp_data['node_count'],
259
-                        'vdisk': iogrp_data['vdisk_count']})
256
+                msg = (_('Expected integer for node_count, '
257
+                         'svcinfo lsiogrp returned: %(node)s') %
258
+                       {'node': iogrp_data['node_count']})
260 259
                 LOG.error(msg)
261 260
                 raise exception.VolumeBackendAPIException(data=msg)
262 261
 

Loading…
Cancel
Save