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
shine4chen and shine.chen committed Mar 22, 2020
1 parent 28ea21a commit f1c79d5
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 f1c79d5

Please sign in to comment.