Skip to content

Commit

Permalink
Adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
codatoz committed Nov 19, 2024
1 parent 70502a8 commit 049e1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/data_access/data_access_to_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func createPolicyStatementsFromWhat(whatItems []sync_to_target.WhatItem, cfg *co
fullName := what.DataObject.FullName

// TODO: later this should only be done for S3 resources?
if strings.Contains(fullName, ":") {
if strings.Contains(fullName, ":") { // Cutting off the 'accountID:region:' prefix
fullName = fullName[strings.Index(fullName, ":")+1:]
if strings.Contains(fullName, ":") {
fullName = fullName[strings.Index(fullName, ":")+1:]
Expand Down

0 comments on commit 049e1a9

Please sign in to comment.