mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix: start sync status (#22442)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -48,6 +48,8 @@ const (
|
||||
STATUS_UPDATE_TAGS = "update_tags"
|
||||
STATUS_UPDATE_TAGS_FAILED = "update_tags_fail"
|
||||
|
||||
STATUS_START_SYNC_STATUS = "start_sync_status"
|
||||
|
||||
STATUS_SYNC_STATUS = "sync_status"
|
||||
STATUS_DELETING = "deleting"
|
||||
STATUS_DELETE_FAILED = "delete_failed"
|
||||
|
||||
@@ -1686,6 +1686,9 @@ func (self *SGuest) fixFakeServerInfo(ctx context.Context, userCred mcclient.Tok
|
||||
}
|
||||
|
||||
func (self *SGuest) StartSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error {
|
||||
if len(parentTaskId) == 0 {
|
||||
self.SetStatus(ctx, userCred, apis.STATUS_START_SYNC_STATUS, "")
|
||||
}
|
||||
driver, err := self.GetDriver()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "GetDriver")
|
||||
|
||||
Reference in New Issue
Block a user