Skip to content

Commit

Permalink
Correct returns
Browse files Browse the repository at this point in the history
  • Loading branch information
jhedev committed Jun 28, 2016
1 parent 4a62497 commit f2fbd00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/providers/aws/resource_aws_iot_thing.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ func resourceAwsIotThingUpdate(d *schema.ResourceData, meta interface{}) error {
}
}

return nil
return resourceAwsIotThingRead(d, meta)
}

func updatePrincipals(conn *iot.IoT, d *schema.ResourceData, meta interface{}) error {
func updatePrincipals(conn *iot.IoT, d *schema.ResourceData) error {
o, n := d.GetChange("principals")
if o == nil {
o = new(schema.Set)
Expand Down Expand Up @@ -185,7 +185,7 @@ func updatePrincipals(conn *iot.IoT, d *schema.ResourceData, meta interface{}) e
}
}

return resourceAwsIotThingRead(d, meta)
return nil
}

func resourceAwsIotThingDelete(d *schema.ResourceData, meta interface{}) error {
Expand Down

0 comments on commit f2fbd00

Please sign in to comment.