Skip to content

Commit

Permalink
r/servicecat_portfolio_share: Finder contains string
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed May 14, 2021
1 parent 0b71dd4 commit cb8d633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/internal/service/servicecatalog/finder/finder.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package finder

import (
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/servicecatalog"
)
Expand All @@ -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
}
Expand Down

0 comments on commit cb8d633

Please sign in to comment.