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
This commit is contained in:
wangzh21 2019-03-03 11:54:37 +08:00 committed by wangzhh
parent cb2b1b03d6
commit 23542a8650
1 changed files with 4 additions and 1 deletions

View File

@ -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)