From 361f22638fb58bce3d66907250951546da2282ca Mon Sep 17 00:00:00 2001 From: chenke Date: Thu, 18 Jul 2019 16:02:44 +0800 Subject: [PATCH] Remove useless gconfig process in watcher/api/scheduling.py Change-Id: I3849453286a735fbe95984e8496fd8a2fcb156b4 --- watcher/api/scheduling.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watcher/api/scheduling.py b/watcher/api/scheduling.py index f00bd1cc8..d44be7d7a 100644 --- a/watcher/api/scheduling.py +++ b/watcher/api/scheduling.py @@ -34,9 +34,8 @@ LOG = log.getLogger(__name__) class APISchedulingService(scheduling.BackgroundSchedulerService): - def __init__(self, gconfig=None, **options): + def __init__(self, gconfig={}, **options): self.services_status = {} - gconfig = None or {} super(APISchedulingService, self).__init__(gconfig, **options) def get_services_status(self, context):