Fix import of resource group name for azurerm_traffic_manager_profile.

This commit is contained in:
Andreas Kyrris 2016-09-27 18:41:40 +01:00
parent 0394a4e072
commit bc3be270f1
2 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,9 @@ func TestAccAzureRMTrafficManagerProfile_importBasic(t *testing.T) {
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name"},
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})

View File

@ -161,6 +161,7 @@ func resourceArmTrafficManagerProfileRead(d *schema.ResourceData, meta interface
profile := *resp.Properties
// update appropriate values
d.Set("resource_group_name", resGroup)
d.Set("name", resp.Name)
d.Set("profile_status", profile.ProfileStatus)
d.Set("traffic_routing_method", profile.TrafficRoutingMethod)