Skip to content

Commit

Permalink
fix(apigateway): container log and exec (#20526)
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi authored Jun 13, 2024
1 parent b8b0d3d commit ec0f619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mcclient/modules/webconsole/mod_webconsole.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ func (m WebConsoleManager) DoContainerExec(s *mcclient.ClientSession, data jsonu
args = append(args, "-f")
}
args = append(args, containerId)
return []string{"container-exec", containerId}
return []string{"container-exec", containerId, "sh"}
})
}

func (m WebConsoleManager) DoContainerLog(s *mcclient.ClientSession, data jsonutils.JSONObject) (jsonutils.JSONObject, error) {
return m.doContainerAction(s, data, func(containerId string) []string {
return []string{"container-log", containerId, "sh"}
return []string{"container-log", containerId}
})
}

Expand Down

0 comments on commit ec0f619

Please sign in to comment.