Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 887a69c commit 6503d32Copy full SHA for 6503d32
cmdb-api/api/views/cmdb/ci.py
@@ -228,11 +228,11 @@ def get(self, ci_id=None):
228
from api.tasks.cmdb import ci_cache
229
from api.lib.cmdb.const import CMDB_QUEUE
230
if ci_id is not None:
231
- ci_cache.apply_async([ci_id], queue=CMDB_QUEUE)
+ ci_cache.apply_async(args=(ci_id, None, None), queue=CMDB_QUEUE)
232
else:
233
cis = CI.get_by(to_dict=False)
234
for ci in cis:
235
- ci_cache.apply_async([ci.id], queue=CMDB_QUEUE)
+ ci_cache.apply_async(args=(ci.id, None, None), queue=CMDB_QUEUE)
236
237
return self.jsonify(code=200)
238
0 commit comments