From 350d2c5d2b5171e61ba1c1f96d3dfe7c0039a496 Mon Sep 17 00:00:00 2001 From: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Wed, 9 Oct 2019 00:26:35 +0800 Subject: [PATCH] [chassis.py] Fix issue in get_change_event: the returned dictionary doesn't contain 'sfp' key. (#3568) --- platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py b/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py index 814c7aca81..02d8988228 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py @@ -523,4 +523,4 @@ class Chassis(ChassisBase): i = i + 1 return True, {'sfp':port_dict} else: - return True, {} + return True, {'sfp':{}}