func (vs *VSphere) GetDatastoreRefFromName(ctx context.Context, dc object.Reference, datastoreName string) (types.ManagedObjectReference, error) {
	Connect(ctx, vs)
	datacenter := object.NewDatacenter(vs.Client.Client, dc.Reference())
	finder := find.NewFinder(vs.Client.Client, false)
	finder.SetDatacenter(datacenter)
	datastore, err := finder.Datastore(ctx, datastoreName)
	return datastore.Reference(), err
}
// GetDatastoreRefFromName returns the datastore reference of the specified datastore
GetDatastoreRefFromName returns the datastore reference of the specified datastore
// GetDatastoreRefFromName returns the datastore reference of the specified datastore
func (vs *VSphere) GetDatastoreRefFromName(ctx context.Context, dc object.Reference, datastoreName string) (types.ManagedObjectReference, error) {
	Connect(ctx, vs)
	datacenter := object.NewDatacenter(vs.Client.Client, dc.Reference())
	finder := find.NewFinder(vs.Client.Client, false)
	finder.SetDatacenter(datacenter)
	datastore, err := finder.Datastore(ctx, datastoreName)
	return datastore.Reference(), err
}
func ( vs * VSphere ) GetDatastoreRefFromName ( ctx context . Context , dc object . Reference , datastoreName string ) ( types . ManagedObjectReference , error ) { Connect ( ctx , vs ) datacenter := object . NewDatacenter ( vs . Client . Client , dc . Reference ( ) ) finder := find . NewFinder ( vs . Client . Client , false ) finder . SetDatacenter ( datacenter ) datastore , err := finder . Datastore ( ctx , datastoreName ) return datastore . Reference ( ) , err }
GetDatastoreRefFromName returns the datastore reference of the specified datastore
GetDatastoreRefFromName returns the datastore reference of the specified datastore