Skip to content

Commit

Permalink
fix warning in endpoint.go : declaring a zero value var
Browse files Browse the repository at this point in the history
  • Loading branch information
6monlambert authored and DStrand1 committed Aug 13, 2024
1 parent da7c161 commit db52f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/vsphere/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ func getVMs(ctx context.Context, e *Endpoint, resourceFilter *ResourceFilter) (o
}
guest := "unknown"
uuid := ""
var memorySizeMB int32 = 0
var memorySizeMB int32
lookup := make(map[string]string)
// Get the name of the VM resource pool
rpname := getResourcePoolName(*r.ResourcePool, resourcePools)
Expand Down

0 comments on commit db52f36

Please sign in to comment.