Fix import of resource group name for azurerm_traffic_manager_profile.
This commit is contained in:
parent
0394a4e072
commit
bc3be270f1
|
@ -24,10 +24,9 @@ func TestAccAzureRMTrafficManagerProfile_importBasic(t *testing.T) {
|
||||||
},
|
},
|
||||||
|
|
||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
ResourceName: resourceName,
|
ResourceName: resourceName,
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
ImportStateVerifyIgnore: []string{"resource_group_name"},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -161,6 +161,7 @@ func resourceArmTrafficManagerProfileRead(d *schema.ResourceData, meta interface
|
||||||
profile := *resp.Properties
|
profile := *resp.Properties
|
||||||
|
|
||||||
// update appropriate values
|
// update appropriate values
|
||||||
|
d.Set("resource_group_name", resGroup)
|
||||||
d.Set("name", resp.Name)
|
d.Set("name", resp.Name)
|
||||||
d.Set("profile_status", profile.ProfileStatus)
|
d.Set("profile_status", profile.ProfileStatus)
|
||||||
d.Set("traffic_routing_method", profile.TrafficRoutingMethod)
|
d.Set("traffic_routing_method", profile.TrafficRoutingMethod)
|
||||||
|
|
Loading…
Reference in New Issue