Fix import of resource group name for azurerm_availability_set.

This commit is contained in:
Andreas Kyrris 2016-09-28 10:54:22 +01:00
parent bc3be270f1
commit d7c0050e18
2 changed files with 4 additions and 5 deletions

View File

@ -25,11 +25,9 @@ func TestAccAzureRMAvailabilitySet_importBasic(t *testing.T) {
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name"},
//this isn't returned from the API!
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})

View File

@ -126,6 +126,7 @@ func resourceArmAvailabilitySetRead(d *schema.ResourceData, meta interface{}) er
}
availSet := *resp.Properties
d.Set("resource_group_name", resGroup)
d.Set("platform_update_domain_count", availSet.PlatformUpdateDomainCount)
d.Set("platform_fault_domain_count", availSet.PlatformFaultDomainCount)
d.Set("name", resp.Name)