Skip to content

Commit 3093d0f

Browse files
committed
review comments
1 parent 0bdfb29 commit 3093d0f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/sonic-host-services/scripts/process-reboot-cause

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

src/sonic-host-services/setup.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
from setuptools import setup
22

3-
dependencies = [
4-
'natsort',
5-
'sonic_py_common',
6-
'swsssdk>=2.0.1',
7-
]
8-
93
setup(
104
name = 'sonic-host-services',
115
version = '1.0',

0 commit comments

Comments
 (0)