@@ -78,7 +78,7 @@ func (m *PerformanceManager) init(r *Registry) {
78
78
79
79
func (p * PerformanceManager ) QueryPerfCounter (ctx * Context , req * types.QueryPerfCounter ) soap.HasFault {
80
80
body := new (methods.QueryPerfCounterBody )
81
- body .Req = req
81
+ body .Res = new (types. QueryPerfCounterResponse )
82
82
body .Res .Returnval = make ([]types.PerfCounterInfo , len (req .CounterId ))
83
83
for i , id := range req .CounterId {
84
84
if info , ok := p .perfCounterIndex [id ]; ! ok {
@@ -95,7 +95,6 @@ func (p *PerformanceManager) QueryPerfCounter(ctx *Context, req *types.QueryPerf
95
95
96
96
func (p * PerformanceManager ) QueryPerfProviderSummary (ctx * Context , req * types.QueryPerfProviderSummary ) soap.HasFault {
97
97
body := new (methods.QueryPerfProviderSummaryBody )
98
- body .Req = req
99
98
body .Res = new (types.QueryPerfProviderSummaryResponse )
100
99
101
100
// The entity must exist
@@ -169,15 +168,13 @@ func (p *PerformanceManager) queryAvailablePerfMetric(entity types.ManagedObject
169
168
170
169
func (p * PerformanceManager ) QueryAvailablePerfMetric (ctx * Context , req * types.QueryAvailablePerfMetric ) soap.HasFault {
171
170
body := new (methods.QueryAvailablePerfMetricBody )
172
- body .Req = req
173
171
body .Res = p .queryAvailablePerfMetric (req .Entity , req .IntervalId )
174
172
175
173
return body
176
174
}
177
175
178
176
func (p * PerformanceManager ) QueryPerf (ctx * Context , req * types.QueryPerf ) soap.HasFault {
179
177
body := new (methods.QueryPerfBody )
180
- body .Req = req
181
178
body .Res = new (types.QueryPerfResponse )
182
179
body .Res .Returnval = make ([]types.BasePerfEntityMetricBase , len (req .QuerySpec ))
183
180
0 commit comments