Skip to content

Commit

Permalink
return list for _get_optional_services() (sonic-net#822)
Browse files Browse the repository at this point in the history
the return value of _get_optional_services() must be iterable

This bug is imported from PR sonic-net#453

Co-authored-by: shine.chen <shine.chen@mediatek.com>
  • Loading branch information
2 people authored and abdosi committed Aug 3, 2020
1 parent bd62a0a commit 2f50ff1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,6 @@ def _get_optional_services():
config_db = ConfigDBConnector()
config_db.connect()
optional_services_dict = config_db.get_table('FEATURE')
if not optional_services_dict:
return None
return optional_services_dict.keys()

def _stop_services():
Expand Down

0 comments on commit 2f50ff1

Please sign in to comment.