diff --git a/sonic_platform_base/sonic_xcvr/api/public/cmis.py b/sonic_platform_base/sonic_xcvr/api/public/cmis.py index f716db1f1..a96e76aef 100644 --- a/sonic_platform_base/sonic_xcvr/api/public/cmis.py +++ b/sonic_platform_base/sonic_xcvr/api/public/cmis.py @@ -3152,6 +3152,6 @@ def get_error_description(self): if state != CmisCodes.MODULE_STATE[3]: return state - return None + return 'OK' # TODO: other XcvrApi methods diff --git a/tests/sonic_xcvr/test_cmis.py b/tests/sonic_xcvr/test_cmis.py index 5e94b3d9e..5738fc71b 100644 --- a/tests/sonic_xcvr/test_cmis.py +++ b/tests/sonic_xcvr/test_cmis.py @@ -3066,7 +3066,7 @@ def test_get_error_description(self): self.api.xcvr_eeprom.read.return_value = 0x10 result = self.api.get_error_description() - assert result is None + assert result is 'OK' def test_random_read_fail(self): def mock_read_raw(offset, size):