Skip to content

Commit

Permalink
fix: fix the return mismatch onr appliance rename in cfm-service
Browse files Browse the repository at this point in the history
  • Loading branch information
Meng-20 committed Oct 10, 2024
1 parent 88fe381 commit b13bf42
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkg/api/api_default_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,19 @@ func (cfm *CfmApiService) AppliancesUpdateById(ctx context.Context, applianceId
return formatErrorResp(ctx, err.(*common.RequestError))
}

return openapi.Response(http.StatusOK, newAppliance), nil
a := openapi.Appliance{
Id: newAppliance.Id,
IpAddress: "", // Unused
Port: 0, // Unused
Status: "", // Unused
Blades: openapi.MemberItem{
Uri: manager.GetCfmUriBlades(newAppliance.Id),
},
TotalMemoryAvailableMiB: 0,
TotalMemoryAllocatedMiB: 0,
}

return openapi.Response(http.StatusOK, a), nil
}

// AppliancesResync -
Expand Down

0 comments on commit b13bf42

Please sign in to comment.