File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ def read_reboot_cause_files_and_save_state_db():
4343 state_db .connect (state_db .STATE_DB )
4444
4545 # Sort the previous reboot cause files by creation time
46- REBOOT_FILE_LIST = [os .path .join (REBOOT_CAUSE_HISTORY_DIR ,i ) for i in os .listdir (REBOOT_CAUSE_HISTORY_DIR )]
46+ REBOOT_FILE_LIST = [os .path .join (REBOOT_CAUSE_HISTORY_DIR , i ) for i in os .listdir (REBOOT_CAUSE_HISTORY_DIR )]
4747 TIME_SORTED_FULL_REBOOT_FILE_LIST = sorted (REBOOT_FILE_LIST , key = os .path .getmtime , reverse = True )
4848
4949 data = []
5050 # Read each sorted previous reboot cause file and update the state db with previous reboot cause information
51- for i in range (min (10 ,len (TIME_SORTED_FULL_REBOOT_FILE_LIST ))):
51+ for i in range (min (10 , len (TIME_SORTED_FULL_REBOOT_FILE_LIST ))):
5252 x = TIME_SORTED_FULL_REBOOT_FILE_LIST [i ]
5353 if os .path .isfile (x ):
5454 with open (x , "r" ) as cause_file :
Original file line number Diff line number Diff line change 11from setuptools import setup
22
3- dependencies = [
4- 'natsort' ,
5- 'sonic_py_common' ,
6- 'swsssdk>=2.0.1' ,
7- ]
8-
93setup (
104 name = 'sonic-host-services' ,
115 version = '1.0' ,
You can’t perform that action at this time.
0 commit comments