diff options
-rw-r--r-- | pyeclib/ec_iface.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyeclib/ec_iface.py b/pyeclib/ec_iface.py index 5c5173f..fcd3120 100644 --- a/pyeclib/ec_iface.py +++ b/pyeclib/ec_iface.py @@ -137,6 +137,8 @@ class ECDriver(object): raise ECDriverError( "Invalid number of data fragments (m)") elif key == "ec_type": + if value in ["flat_xor_hd_3", "flat_xor_hd_4"]: + value = "flat_xor_hd" if PyECLib_EC_Types.has_enum(value): self.ec_type = \ PyECLib_EC_Types.get_by_name(value) |