Skip to content

Commit

Permalink
Strings prefix fix #34
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Jun 9, 2021
1 parent f851137 commit a6a34a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iamlivecore/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,10 @@ func subARNParameters(arn string, call Entry, specialsOnly bool) (bool, []string
}

partition := "aws"
if call.Region[0:3] == "cn-" {
if strings.HasPrefix(call.Region, "cn") {
partition = "aws-cn"
}
if call.Region[0:7] == "us-gov-" {
if strings.HasPrefix(call.Region, "us-gov") {
partition = "aws-us-gov"
}

Expand Down

0 comments on commit a6a34a7

Please sign in to comment.