Skip to content

Commit

Permalink
Add account_id
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Nov 12, 2024
1 parent c984ee4 commit 58eff95
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ class FivetranWorkspace(ConfigurableResource):
to interact with Fivetran APIs.
"""

account_id: str = Field(description="The Fivetran account ID.")
api_key: str = Field(description="The Fivetran API key to use for this resource.")
api_secret: str = Field(description="The Fivetran API secret to use for this resource.")
request_max_retries: int = Field(
Expand Down Expand Up @@ -689,7 +690,7 @@ class FivetranWorkspaceDefsLoader(StateBackedDefinitionsLoader[Mapping[str, Any]

@property
def defs_key(self) -> str:
return f"{FIVETRAN_RECONSTRUCTION_METADATA_KEY_PREFIX}/{self.workspace.site_name}"
return f"{FIVETRAN_RECONSTRUCTION_METADATA_KEY_PREFIX}/{self.workspace.account_id}"

def fetch_state(self) -> FivetranWorkspaceData:
return self.workspace.fetch_fivetran_workspace_data()
Expand Down

0 comments on commit 58eff95

Please sign in to comment.