Skip to content

Commit 7cd85c7

Browse files
lguohanabdosi
authored andcommitted
Revert "return list for _get_optional_services() (sonic-net#822)" (sonic-net#848)
This reverts commit f1c79d5.
1 parent 2f50ff1 commit 7cd85c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ 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
416418
return optional_services_dict.keys()
417419

418420
def _stop_services():

0 commit comments

Comments
 (0)