Skip to content

Commit

Permalink
Merge pull request #8322 from ioito/automated-cherry-pick-of-#8321-up…
Browse files Browse the repository at this point in the history
…stream-release-3.4

Automated cherry pick of #8321: fix: sync dns records after sync vpcs
  • Loading branch information
zexi committed Oct 20, 2020
2 parents 3d39c20 + 11f8e4f commit b3105a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/compute/tasks/dnszone_sync_vpcs_task.go
Expand Up @@ -146,5 +146,14 @@ func (self *DnsZoneSyncVpcsTask) OnInit(ctx context.Context, obj db.IStandaloneM
}
}

self.SetStage("OnSyncRecordSetComplete", nil)
dnsZone.StartDnsZoneSyncRecordSetsTask(ctx, self.GetUserCred(), self.GetTaskId())
}

func (self *DnsZoneSyncVpcsTask) OnSyncRecordSetComplete(ctx context.Context, dnsZone *models.SDnsZone, data jsonutils.JSONObject) {
self.taskComplete(ctx, dnsZone)
}

func (self *DnsZoneSyncVpcsTask) OnSyncRecordSetCompleteFailed(ctx context.Context, cache *models.SDnsZoneCache, data jsonutils.JSONObject) {
self.SetStageFailed(ctx, data)
}

0 comments on commit b3105a0

Please sign in to comment.