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:
parent
cb2b1b03d6
commit
23542a8650
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue