Fixed the veritas connector path

This patch updates the return path from 'device_path' to 'path'
to be compatible with every other connector.

Change-Id: I2c1d561521fdd37626e3301148c16feff48a1fde
This commit is contained in:
Walter A. Boring IV 2017-05-23 18:31:50 +00:00
parent c68131decf
commit 06e9d9cc97
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class HyperScaleConnector(base.BaseLinuxConnector):
raise exception.BrickException(message=msg)
device_info['vsa_ip'] = payload.get('vsa_ip')
device_info['device_path'] = (
device_info['path'] = (
'/dev/' + connection_properties['name'][1:32])
refl_factor = int(payload.get('refl_factor'))
device_info['refl_factor'] = str(refl_factor)

View File

@ -77,7 +77,7 @@ class HyperScaleConnectorTestCase(test_connector.ConnectorTestCase):
self.assertEqual('192.0.2.2', device_info['vsa_ip'])
self.assertEqual('2', device_info['refl_factor'])
self.assertEqual('192.0.2.3,192.0.2.4', device_info['refl_targets'])
self.assertEqual(DEVICE_PATH, device_info['device_path'])
self.assertEqual(DEVICE_PATH, device_info['path'])
def test_connect_volume_arg_missing(self):
"""Test connect_volume with missing missing arguments"""