Skip to content

Commit

Permalink
Autogen for region read, cloud scheduler examples (#3147)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and emilymye committed Feb 28, 2019
1 parent f86dc20 commit 1496810
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google/resource_redis_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,14 @@ func resourceRedisInstanceRead(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("Error reading Instance: %s", err)
}

region, err := getRegion(d, config)
if err != nil {
return err
}
if err := d.Set("region", region); err != nil {
return fmt.Errorf("Error reading Instance: %s", err)
}

if err := d.Set("alternative_location_id", flattenRedisInstanceAlternativeLocationId(res["alternativeLocationId"], d)); err != nil {
return fmt.Errorf("Error reading Instance: %s", err)
}
Expand Down

0 comments on commit 1496810

Please sign in to comment.