Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Prete committed Feb 15, 2024
1 parent c95de56 commit 801b1f0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ func iamMemberToAccess(member string) (string, string, error) {
if strings.HasPrefix(member, "deleted:") {
return "", "", fmt.Errorf("BigQuery Dataset IAM member is deleted: %s", member)
}

pieces := strings.SplitN(member, ":", 2)
if len(pieces) > 1 {
switch pieces[0] {
Expand Down Expand Up @@ -249,7 +248,7 @@ func accessToIamMember(access map[string]interface{}) (string, error) {
return member.(string), nil
}
if member, ok := access["iamMember"]; ok {
return member.(string), nil
return fmt.Sprintf("iamMember:%s", member.(string)), nil
}
if _, ok := access["view"]; ok {
// view does not map to an IAM member, use access instead
Expand Down

0 comments on commit 801b1f0

Please sign in to comment.