From f1c79d553209ccdea1e64d76854cf3606461ccc3 Mon Sep 17 00:00:00 2001 From: shine4chen <37530989+shine4chen@users.noreply.github.com> Date: Sun, 22 Mar 2020 09:37:29 +0800 Subject: [PATCH] return list for _get_optional_services() (#822) the return value of _get_optional_services() must be iterable This bug is imported from PR #453 Co-authored-by: shine.chen --- config/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/main.py b/config/main.py index 820d4085e690..778fd429f410 100755 --- a/config/main.py +++ b/config/main.py @@ -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():