Merge pull request #5173 from swordqiu/hotfix/qj-sync-provider-with-account-status-change

fix: sync cloud provider should change its cloud account's sync_status
This commit is contained in:
Yousong Zhou
2020-02-19 16:02:30 +08:00
committed by GitHub
+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)