Skip to content

Commit f1c79d5

Browse files
shine4chenshine.chen
and
shine.chen
authored
return list for _get_optional_services() (sonic-net#822)
the return value of _get_optional_services() must be iterable This bug is imported from PR sonic-net#453 Co-authored-by: shine.chen <[email protected]>
1 parent 28ea21a commit f1c79d5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

config/main.py

-2
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,6 @@ def _get_optional_services():
413413
config_db = ConfigDBConnector()
414414
config_db.connect()
415415
optional_services_dict = config_db.get_table('FEATURE')
416-
if not optional_services_dict:
417-
return None
418416
return optional_services_dict.keys()
419417

420418
def _stop_services():

0 commit comments

Comments
 (0)