Skip to content

Commit

Permalink
[201911][Juniper QFX5210] Fix Python errors (#4413)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored Apr 11, 2020
1 parent 4f1b9ff commit d09fba3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def __init__(self, log_file, log_level):
masterLED_file = open(MASTER_LED_PATH, 'r+')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
return
masterLED_file.write(str(master_led_value))
masterLED_file.close()

Expand All @@ -477,10 +477,9 @@ def __init__(self, log_file, log_level):
systemLED_file = open(SYSTEM_LED_PATH, 'r+')
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False
return
systemLED_file.write(str(system_led_value))
systemLED_file.close()
pass

def manage_device(self):
thermal = QFX5210_ThermalUtil()
Expand Down

0 comments on commit d09fba3

Please sign in to comment.