Skip to content

Commit

Permalink
Set resource_group_name when reading from API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Kyrris committed Sep 27, 2016
1 parent c315824 commit fb24a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions builtin/providers/azurerm/resource_arm_public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func resourceArmPublicIpRead(d *schema.ResourceData, meta interface{}) error {
return nil
}

d.Set("resource_group_name", resGroup)
d.Set("location", resp.Location)
d.Set("name", resp.Name)
d.Set("public_ip_address_allocation", strings.ToLower(string(resp.Properties.PublicIPAllocationMethod)))
Expand Down
1 change: 1 addition & 0 deletions builtin/providers/azurerm/resource_arm_storage_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err
}

accessKeys := *keys.Keys
d.Set("resource_group_name", resGroup)
d.Set("primary_access_key", accessKeys[0].Value)
d.Set("secondary_access_key", accessKeys[1].Value)
d.Set("location", resp.Location)
Expand Down

0 comments on commit fb24a2b

Please sign in to comment.