Commit 23542a86 by wangzh21 Committed by wangzhh

Report data to conductor

Cyborg agent calls acc_driver to collect infomation of current
node. Then it should report the data object to conductor to do
the diff and store in db.

Change-Id: Ic187993019b74e70397aab50c21988c2172a5e86
parent cb2b1b03
......@@ -70,4 +70,7 @@ class ResourceTracker(object):
acc_list = []
for acc_driver in self.acc_drivers:
acc_list.extend(acc_driver.discover())
# Call conductor_api here to diff and report acc data.
# Call conductor_api here to diff and report acc data. Now, we actually
# do not have the method report_data.
if acc_list:
self.conductor_api.report_data(context, self.host, acc_list)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment