Skip to content

Commit 12abfe0

Browse files
mosh0405anandkunal
authored andcommitted
PolicyAssetAssociation resource - set the syntheticID to be aligned with how the ID is passed on import command
1 parent f8766bb commit 12abfe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

incapsula/resource_policy_asset_association.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func resourcePolicyAssetAssociationRead(d *schema.ResourceData, m interface{}) e
8080

8181
if isAssociated {
8282
log.Printf("[INFO] Successfully read Policy Asset Association exist: %s-%s-%s\n", policyID, assetID, assetType)
83-
syntheticID := fmt.Sprintf("%s-%s-%s", policyID, assetID, assetType)
83+
syntheticID := fmt.Sprintf("%s/%s/%s", policyID, assetID, assetType)
8484

8585
d.Set("asset_id", assetID)
8686
d.Set("asset_type", assetType)

0 commit comments

Comments
 (0)