Skip to content

Commit

Permalink
Merge pull request #3553 from stuartleeks/fix-redis-client-build
Browse files Browse the repository at this point in the history
Fix build errors
  • Loading branch information
tombuildsstuff authored May 30, 2019
2 parents d66f52a + 19dd65a commit 4d6605a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/data_source_redis_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func dataSourceArmRedisCache() *schema.Resource {

func dataSourceArmRedisCacheRead(d *schema.ResourceData, meta interface{}) error {
ctx := meta.(*ArmClient).StopContext
client := meta.(*ArmClient).redisClient
client := meta.(*ArmClient).redis.Client

resourceGroup := d.Get("resource_group_name").(string)
name := d.Get("name").(string)
Expand Down Expand Up @@ -244,7 +244,7 @@ func dataSourceArmRedisCacheRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("Error setting `redis_configuration`: %+v", err)
}

patchSchedulesClient := meta.(*ArmClient).redisPatchSchedulesClient
patchSchedulesClient := meta.(*ArmClient).redis.PatchSchedulesClient

schedule, err := patchSchedulesClient.Get(ctx, resourceGroup, name)
if err == nil {
Expand Down

0 comments on commit 4d6605a

Please sign in to comment.