Skip to content

Commit

Permalink
azuread_access_package_resource_catalog_association: allow originId c…
Browse files Browse the repository at this point in the history
…ontaining `/`, e.g. URIs
  • Loading branch information
manicminer committed Dec 16, 2024
1 parent 6dd8e71 commit bf56e1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewAccessPackageResourceCatalogAssociationID(catalogId, originId string) Ac
}

func AccessPackageResourceCatalogAssociationID(idString string) (*AccessPackageResourceCatalogAssociationId, error) {
parts := strings.Split(idString, "/")
parts := strings.SplitN(idString, "/", 2)
if len(parts) != 2 {
return nil, fmt.Errorf("ID should be in the format {catalogId}/{originId} - but got %q", idString)
}
Expand Down

0 comments on commit bf56e1d

Please sign in to comment.