Merge "VMAX driver - Fix AttributeError of dell emc driver"
This commit is contained in:
commit
907da1f54b
@ -5010,6 +5010,16 @@ class VMAXCommonTest(test.TestCase):
|
|||||||
mock_revert.assert_called_once_with(
|
mock_revert.assert_called_once_with(
|
||||||
array, device_id, snap_name, extra_specs)
|
array, device_id, snap_name, extra_specs)
|
||||||
|
|
||||||
|
def test_get_initiator_check_flag(self):
|
||||||
|
self.common.configuration.initiator_check = False
|
||||||
|
initiator_check = self.common._get_initiator_check_flag()
|
||||||
|
self.assertFalse(initiator_check)
|
||||||
|
|
||||||
|
def test_get_initiator_check_flag_true(self):
|
||||||
|
self.common.configuration.initiator_check = True
|
||||||
|
initiator_check = self.common._get_initiator_check_flag()
|
||||||
|
self.assertTrue(initiator_check)
|
||||||
|
|
||||||
|
|
||||||
class VMAXFCTest(test.TestCase):
|
class VMAXFCTest(test.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -164,13 +164,7 @@ class VMAXCommon(object):
|
|||||||
|
|
||||||
:returns: flag
|
:returns: flag
|
||||||
"""
|
"""
|
||||||
conf_string = (self.configuration.safe_get('initiator_check'))
|
return self.configuration.safe_get('initiator_check')
|
||||||
ret_val = False
|
|
||||||
string_true = "True"
|
|
||||||
if conf_string:
|
|
||||||
if conf_string.lower() == string_true.lower():
|
|
||||||
ret_val = True
|
|
||||||
return ret_val
|
|
||||||
|
|
||||||
def _get_replication_info(self):
|
def _get_replication_info(self):
|
||||||
"""Gather replication information, if provided."""
|
"""Gather replication information, if provided."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user