// Refresh implementation of terraform.ResourceProvider interface.

Refresh implementation of terraform.ResourceProvider interface.
// Refresh implementation of terraform . ResourceProvider interface .
func (p *Provider) Refresh(
	info *terraform.InstanceInfo,
	s *terraform.InstanceState) (*terraform.InstanceState, error) {
	r, ok := p.ResourcesMap[info.Type]
	if !ok {
		return nil, fmt.Errorf("unknown resource type: %s", info.Type)
	}
	return r.Refresh(s, p.meta)
}
func ( p * Provider ) Refresh ( info * terraform . InstanceInfo , s * terraform . InstanceState ) ( * terraform . InstanceState , error ) { r , ok := p . ResourcesMap [ info . Type ] if ! ok { return nil , fmt . Errorf ( " " , info . Type ) } return r . Refresh ( s , p . meta ) }
Refresh implementation of terraform.ResourceProvider interface.
Refresh implementation of terraform . ResourceProvider interface .