Fix import of resource group name for azurerm_availability_set.
This commit is contained in:
parent
bc3be270f1
commit
d7c0050e18
|
@ -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,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue