Skip to content

Commit

Permalink
vsphere: Log error return from Resource Pool
Browse files Browse the repository at this point in the history
Fixes #553

Signed-off-by: Cathy Avery <cavery@redhat.com>
  • Loading branch information
caavery authored and snir911 committed Jan 24, 2023
1 parent 82eb90c commit 0591f43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/adaptor/hypervisor/vsphere/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func CreateInstance(ctx context.Context, vim25Client *vim25.Client, vmcfg *Confi
// TODO for DRS ResourcePoolOrDefault()
pool, err := finder.DefaultResourcePool(ctx)
if err != nil {
logger.Printf("Cannot find default resource pool error: %s", err)
return nil, err
}
poolref := types.NewReference(pool.Reference())
Expand Down

0 comments on commit 0591f43

Please sign in to comment.