手动同步的也更新last_auto_sync时间

This commit is contained in:
ioito
2019-04-25 22:05:18 +08:00
parent 20860ba3ef
commit d29c2f5dfd
+3
View File
@@ -452,6 +452,9 @@ func (self *SCloudprovider) StartSyncCloudProviderInfoTask(ctx context.Context,
log.Errorf("startSyncCloudProviderInfoTask newTask error %s", err)
return err
}
if cloudaccount := self.GetCloudaccount(); cloudaccount != nil {
cloudaccount.markAutoSync(userCred)
}
self.markStartSync(userCred)
db.OpsLog.LogEvent(self, db.ACT_SYNC_HOST_START, "", userCred)
task.ScheduleRun(nil)