Skip to content

Commit

Permalink
Merge pull request #1592 from manicminer/bugfix/access-package-resour…
Browse files Browse the repository at this point in the history
…ce-catalog-association-id-parsing

azuread_access_package_resource_catalog_association: allow originId containing `/`, e.g. URIs
  • Loading branch information
stephybun authored Jan 15, 2025
2 parents f5fb443 + bf56e1d commit 03088e7
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 03088e7

Please sign in to comment.