Skip to content

Commit

Permalink
Wrong environment to check the redshift role
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Sep 27, 2024
1 parent 0b1295a commit 00d92f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def validate_share_object_create(

@staticmethod
def validate_share_object_submit(session, dataset, share) -> bool:
environment = EnvironmentService.get_environment_by_uri(session, dataset.environmentUri)
environment = EnvironmentService.get_environment_by_uri(session, share.environmentUri)
RedshiftTableValidator._validate_redshift_role(
session=session,
environment=environment,
Expand All @@ -60,7 +60,7 @@ def validate_share_object_submit(session, dataset, share) -> bool:

@staticmethod
def validate_share_object_approve(session, dataset, share) -> bool:
environment = EnvironmentService.get_environment_by_uri(session, dataset.environmentUri)
environment = EnvironmentService.get_environment_by_uri(session, share.environmentUri)
RedshiftTableValidator._validate_redshift_role(
session=session,
environment=environment,
Expand Down

0 comments on commit 00d92f6

Please sign in to comment.