Set resource_group_name when reading from API.
This commit is contained in:
parent
e55852888a
commit
e589fee01c
|
@ -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)))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue