Skip to content

Commit 92292a2

Browse files
author
dgsudharsan
committed
Support for multiple ranges
1 parent 6debffc commit 92292a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sonic-xcvrd/scripts/xcvrd

+6-6
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,12 @@ def get_media_settings_value(physical_port, key):
300300
if check_port_in_range(keys, physical_port):
301301
media_dict = g_dict["GLOBAL_MEDIA_SETTINGS"][keys]
302302

303-
# If there is a match in the global profile for a media type,
304-
# fetch those values
305-
if key[0] in media_dict:
306-
return media_dict[key[0]]
307-
elif key[1] in media_dict:
308-
return media_dict[key[1]]
303+
# If there is a match in the global profile for a media type,
304+
# fetch those values
305+
if key[0] in media_dict:
306+
return media_dict[key[0]]
307+
elif key[1] in media_dict:
308+
return media_dict[key[1]]
309309

310310
media_dict = {}
311311

0 commit comments

Comments
 (0)