Skip to content

Commit

Permalink
Merge pull request #1367 from seokho-son/main
Browse files Browse the repository at this point in the history
Apply channel for GoRoutine in MC-infra control
  • Loading branch information
seokho-son authored Oct 12, 2023
2 parents 996c283 + 724616a commit c44e95f
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 c44e95f

Please sign in to comment.