Skip to content

Commit

Permalink
fix: govc datacenter.info VM count with multiple DCs
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz committed Aug 24, 2023
1 parent c63291a commit b22f730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govc/datacenter/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (r *infoResult) Write(w io.Writer) error {

manager := view.NewManager(r.client)

v, err := manager.CreateContainerView(r.ctx, r.client.ServiceContent.RootFolder, []string{"VirtualMachine"}, true)
v, err := manager.CreateContainerView(r.ctx, o.Reference(), []string{"VirtualMachine"}, true)
if err != nil {
return err
}
Expand Down

0 comments on commit b22f730

Please sign in to comment.