From cb8d63393d776ca80c78fc0669ac3b55d941f8d2 Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Fri, 14 May 2021 09:34:28 -0400 Subject: [PATCH] r/servicecat_portfolio_share: Finder contains string --- aws/internal/service/servicecatalog/finder/finder.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aws/internal/service/servicecatalog/finder/finder.go b/aws/internal/service/servicecatalog/finder/finder.go index d78c3e7495f..c7347d6e558 100644 --- a/aws/internal/service/servicecatalog/finder/finder.go +++ b/aws/internal/service/servicecatalog/finder/finder.go @@ -1,6 +1,8 @@ package finder import ( + "strings" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" ) @@ -22,7 +24,7 @@ func PortfolioShare(conn *servicecatalog.ServiceCatalog, portfolioID, shareType, continue } - if aws.StringValue(deet.PrincipalId) == principalID { + if strings.Contains(principalID, aws.StringValue(deet.PrincipalId)) { result = deet return false }