Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jcieslak committed Feb 15, 2024
1 parent 316554a commit 24bb9dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variable "database" {
}

resource "snowflake_database" "test" {
name = var.database
name = var.database
}

resource "snowflake_database_role" "test" {
Expand All @@ -24,9 +24,9 @@ resource "snowflake_share" "test" {
}

resource "snowflake_grant_privileges_to_share" "test" {
privileges = ["USAGE"]
privileges = ["USAGE"]
on_database = snowflake_database.test.name
to_share = snowflake_share.test.name
to_share = snowflake_share.test.name
}

resource "snowflake_grant_database_role" "test" {
Expand Down
1 change: 1 addition & 0 deletions pkg/sdk/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func (row grantRow) convert() *Grant {
grantTo := ObjectType(strings.ReplaceAll(row.GrantTo, "_", " "))
var granteeName AccountObjectIdentifier
if grantedTo == ObjectTypeShare {
// TODO(SNOW-1058419): Change this logic during identifiers rework
parts := strings.Split(row.GranteeName, ".")
switch {
case len(parts) == 1:
Expand Down

0 comments on commit 24bb9dd

Please sign in to comment.