Skip to content

Commit

Permalink
update import resource id for `azurerm_network_interface_security_gro…
Browse files Browse the repository at this point in the history
…up_association` (#6625)
  • Loading branch information
njuCZ committed Apr 26, 2020
1 parent 8ecb0ed commit 6356c26
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -100,7 +100,7 @@ func resourceArmNetworkInterfaceSecurityGroupAssociationCreate(d *schema.Resourc
resourceId := fmt.Sprintf("%s|%s", networkInterfaceId, networkSecurityGroupId)
if features.ShouldResourcesBeImported() {
if props.NetworkSecurityGroup != nil {
return tf.ImportAsExistsError("azurerm_network_interface_security_group_association", resourceGroup)
return tf.ImportAsExistsError("azurerm_network_interface_security_group_association", resourceId)
}
}

Expand Down

0 comments on commit 6356c26

Please sign in to comment.