mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): maintain compatibility with webhook notify
This commit is contained in:
@@ -159,7 +159,7 @@ func (self *GuestCreateTask) OnDeployGuestDescComplete(ctx context.Context, obj
|
||||
}
|
||||
|
||||
func (self *GuestCreateTask) notifyServerCreated(ctx context.Context, guest *models.SGuest) {
|
||||
// notifyclient.NotifyWebhook(ctx, self.UserCred, guest, notifyclient.ActionCreate)
|
||||
notifyclient.NotifyWebhook(ctx, self.UserCred, guest, notifyclient.ActionCreate)
|
||||
guest.EventNotify(ctx, self.UserCred, notifyclient.ActionCreate)
|
||||
}
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ func (self *GuestRebuildRootTask) OnRebuildAllDisksComplete(ctx context.Context,
|
||||
}
|
||||
}
|
||||
db.OpsLog.LogEvent(guest, db.ACT_REBUILD_ROOT, "", self.UserCred)
|
||||
// notifyclient.NotifyWebhook(ctx, self.UserCred, guest, notifyclient.ActionRebuildRoot)
|
||||
notifyclient.NotifyWebhook(ctx, self.UserCred, guest, notifyclient.ActionRebuildRoot)
|
||||
guest.EventNotify(ctx, self.UserCred, notifyclient.ActionRebuildRoot)
|
||||
self.SetStage("OnSyncStatusComplete", nil)
|
||||
guest.StartSyncstatus(ctx, self.UserCred, self.GetTaskId())
|
||||
|
||||
Reference in New Issue
Block a user