Skip to content

Commit

Permalink
Rename variable to make it more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Junchao-Mellanox committed Jun 15, 2020
1 parent 4a85792 commit ff7c141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
logger = Logger()

# System LED system fs definitions for 201911 branch only
LED_GREEN = '/run/hw-management/led/led_status_green'
SYSTEM_STATUS_LED_GREEN_FILE = '/run/hw-management/led/led_status_green'
LED_ON = '1'

# magic code defnition for port number, qsfp port position of each hwsku
Expand Down Expand Up @@ -481,7 +481,7 @@ def initialize_system_led(self):
This is for 201911 branch only
"""
try:
with open(LED_GREEN, 'w') as f:
with open(SYSTEM_STATUS_LED_GREEN_FILE, 'w') as f:
f.write(LED_ON)
except:
pass
Expand Down

0 comments on commit ff7c141

Please sign in to comment.