mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 09:12:19 +08:00
fix py3
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user