Created
May 23, 2017 18:29
-
-
Save anonymous/0307e9d63c24da43fc7843effdc49575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/os_brick/initiator/connectors/vrtshyperscale.py b/os_brick/initiator/connectors/vrtshyperscale.py | |
index aa0a504..3c352e1 100644 | |
--- a/os_brick/initiator/connectors/vrtshyperscale.py | |
+++ b/os_brick/initiator/connectors/vrtshyperscale.py | |
@@ -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) | |
diff --git a/os_brick/tests/initiator/connectors/test_vrtshyperscale.py b/os_brick/tests/initiator/connectors/test_vrtshyperscale.py | |
index 59e73f1..20b1933 100644 | |
--- a/os_brick/tests/initiator/connectors/test_vrtshyperscale.py | |
+++ b/os_brick/tests/initiator/connectors/test_vrtshyperscale.py | |
@@ -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""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment