This commit is contained in:
pycook 2019-11-12 11:15:25 +08:00
parent 398fbb25dc
commit 42bcc2e510
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ def init_cache():
cis = CI.get_by(to_dict=False) cis = CI.get_by(to_dict=False)
for ci in cis: for ci in cis:
res = rd.get([ci.id])
if list(filter(lambda x: x, rd.get([ci.id]))): if res and list(filter(lambda x: x, res)):
continue continue
m = api.lib.cmdb.ci.CIManager() m = api.lib.cmdb.ci.CIManager()