mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(host): marshal update status input inside error (#22692)
This commit is contained in:
@@ -62,7 +62,7 @@ func (m *manager) SetContainerStartup(podId string, containerId string, started
|
||||
}
|
||||
|
||||
if err := statusman.GetManager().UpdateStatus(input); err != nil {
|
||||
err = errors.Wrapf(err, "set container(%s/%s) status failed, input: %s", podId, containerId, jsonutils.Marshal(input))
|
||||
err = errors.Wrapf(err, "set container(%s/%s) status failed, input: %s", podId, containerId, jsonutils.Marshal(input.ToServerPerformStatusInput()))
|
||||
log.Warningf(err.Error())
|
||||
errMsg := []string{
|
||||
"can't set container status",
|
||||
|
||||
@@ -46,7 +46,7 @@ type PodStatusUpdateRequest struct {
|
||||
Status string
|
||||
ContainerStatuses map[string]*ContainerStatus
|
||||
Reason string
|
||||
Result chan error
|
||||
Result chan error `json:"-"`
|
||||
}
|
||||
|
||||
func (r PodStatusUpdateRequest) ToServerPerformStatusInput() *computeapi.ServerPerformStatusInput {
|
||||
|
||||
Reference in New Issue
Block a user