Skip to content

Commit

Permalink
Apply channel for GoRoutine in MC-infra control
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son committed Oct 12, 2023
1 parent 996c283 commit 724616a
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 243 deletions.
2 changes: 1 addition & 1 deletion src/api/rest/server/mcis/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func RestGetControlMcisVm(c echo.Context) error {

if action == "suspend" || action == "resume" || action == "reboot" || action == "terminate" {

result, err := mcis.CoreGetMcisVmAction(nsId, mcisId, vmId, action)
result, err := mcis.HandleMcisVmAction(nsId, mcisId, vmId, action)
if err != nil {
mapA := map[string]string{"message": err.Error()}
return c.JSON(http.StatusInternalServerError, &mapA)
Expand Down
Loading

0 comments on commit 724616a

Please sign in to comment.