remove wrong expression

if list is empty ,it will still go into 'if' , not 'else'

Change-Id: I181dbd83411f7898e0cb1e95715c9568e3074bab
This commit is contained in:
kuangcx 2020-12-17 23:17:01 -08:00
parent 759c01080d
commit 5b5712c826

View File

@ -90,7 +90,7 @@ class RequestContext(context.RequestContext):
if s.get('type') in if s.get('type') in
('identity', 'compute', 'object-store')] ('identity', 'compute', 'object-store')]
else: else:
# if list is empty or none # if list is none
self.service_catalog = [] self.service_catalog = []
# # We need to have RequestContext attributes defined # # We need to have RequestContext attributes defined