Skip to content

Commit

Permalink
Update connector setup state property
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Nov 14, 2024
1 parent d840327 commit cb68de7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def fetch_fivetran_workspace_data(
connector_details=connector_details,
)

if connector.has_bad_setup_state:
if not connector.is_connected:
continue

connectors_by_id[connector.id] = connector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def destination_id(self) -> str:
return self.group_id

@property
def has_bad_setup_state(self) -> bool:
return self.setup_state is not FivetranConnectorSetupStateType.CONNECTED
def is_connected(self) -> bool:
return self.setup_state is FivetranConnectorSetupStateType.CONNECTED

@classmethod
def from_connector_details(
Expand Down

0 comments on commit cb68de7

Please sign in to comment.