fix: sync cloud provider should change its cloud account's sync_status

This commit is contained in:
Qiu Jian
2020-02-19 11:44:24 +08:00
parent 1e328ab028
commit aafec107fb
+1
View File
@@ -551,6 +551,7 @@ func (self *SCloudprovider) StartSyncCloudProviderInfoTask(ctx context.Context,
}
if cloudaccount := self.GetCloudaccount(); cloudaccount != nil {
cloudaccount.markAutoSync(userCred)
cloudaccount.MarkSyncing(userCred)
}
self.markStartSync(userCred)
db.OpsLog.LogEvent(self, db.ACT_SYNC_HOST_START, "", userCred)