From 5b5712c826264c62664a467290ca036dc1bbb311 Mon Sep 17 00:00:00 2001 From: kuangcx Date: Thu, 17 Dec 2020 23:17:01 -0800 Subject: [PATCH] remove wrong expression if list is empty ,it will still go into 'if' , not 'else' Change-Id: I181dbd83411f7898e0cb1e95715c9568e3074bab --- venus/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/venus/context.py b/venus/context.py index bdc0e54..308d13c 100644 --- a/venus/context.py +++ b/venus/context.py @@ -90,7 +90,7 @@ class RequestContext(context.RequestContext): if s.get('type') in ('identity', 'compute', 'object-store')] else: - # if list is empty or none + # if list is none self.service_catalog = [] # # We need to have RequestContext attributes defined