diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-05-03 22:52:25 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-05-03 22:52:25 +0000 |
commit | c4312307abac5bf7c23e85f70189a0059f3cd746 (patch) | |
tree | c21bb226ecb776ae3b59cecabdba441622832db8 | |
parent | ea1b479a816650242999f4c19401d201f6160047 (diff) | |
parent | 5ebb2cd307f194627a1a12d7093032ca8a7abe65 (diff) | |
download | pyeclib-c4312307abac5bf7c23e85f70189a0059f3cd746.tar.gz |
Merge "Fix error message with invalid parity number"
-rw-r--r-- | pyeclib/ec_iface.py | 2 | ||||
-rw-r--r-- | test/test_pyeclib_api.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pyeclib/ec_iface.py b/pyeclib/ec_iface.py index 59bf1fb..13fe505 100644 --- a/pyeclib/ec_iface.py +++ b/pyeclib/ec_iface.py @@ -168,7 +168,7 @@ class ECDriver(object): self.m = positive_int_value(value) except ValueError: raise ECDriverError( - "Invalid number of data fragments (m)") + "Invalid number of parity fragments (m)") elif key == "ec_type": if value in ["flat_xor_hd", "flat_xor_hd_3", "flat_xor_hd_4"]: if value == "flat_xor_hd" or value == "flat_xor_hd_3": diff --git a/test/test_pyeclib_api.py b/test/test_pyeclib_api.py index 9585035..57cea5c 100644 --- a/test/test_pyeclib_api.py +++ b/test/test_pyeclib_api.py @@ -143,7 +143,7 @@ class TestPyECLibDriver(unittest.TestCase): # m is smaller than 1 ECDriver(ec_type=ec_type, k=1, m=-100) self.assertEqual(str(err_context.exception), - "Invalid number of data fragments (m)") + "Invalid number of parity fragments (m)") def test_valid_ec_types(self): # Build list of available types and compare to VALID_EC_TYPES |