Skip to content

Commit

Permalink
Merge pull request #34 from oscr/use-noop-resource-pet
Browse files Browse the repository at this point in the history
Replace ReadPet function in resource_pet with schema.noop
  • Loading branch information
mildwonkey authored Jul 19, 2018
2 parents 8b9ed3e + 8321d38 commit d813c5f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions random/resource_pet.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func resourcePet() *schema.Resource {
return &schema.Resource{
Create: CreatePet,
Read: ReadPet,
Read: schema.Noop,
Delete: schema.RemoveFromState,

Schema: map[string]*schema.Schema{
Expand Down Expand Up @@ -60,7 +60,3 @@ func CreatePet(d *schema.ResourceData, meta interface{}) error {

return nil
}

func ReadPet(d *schema.ResourceData, meta interface{}) error {
return nil
}

0 comments on commit d813c5f

Please sign in to comment.