From 4e3a0a0e92139b374d974ce5b1f9df60b9dded5f Mon Sep 17 00:00:00 2001 From: Zhenghui Cai-Juniper Networks Date: Fri, 11 Jun 2021 12:34:12 -0400 Subject: [PATCH] Fix typo for midplane APIs. (#196) In midplane API, default method should be raise NotImplementedError not return NotImplementedError --- sonic_platform_base/module_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic_platform_base/module_base.py b/sonic_platform_base/module_base.py index cb4dda7d3077..5b36a649695e 100644 --- a/sonic_platform_base/module_base.py +++ b/sonic_platform_base/module_base.py @@ -451,7 +451,7 @@ def get_midplane_ip(self): A string, the IP-address of the module reachable over the midplane """ - return NotImplementedError + raise NotImplementedError def is_midplane_reachable(self): """ @@ -461,4 +461,4 @@ def is_midplane_reachable(self): Returns: A bool value, should return True if module is reachable via midplane """ - return NotImplementedError + raise NotImplementedError