Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rgudic committed Oct 4, 2022
1 parent da1e3a8 commit 6e02a88
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions metadata-ingestion/src/datahub/ingestion/source/salesforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ class SalesforceConfig(DatasetSourceConfigBase):
instance_url: Optional[str] = Field(
description="Salesforce instance url. e.g. https://MyDomainName.my.salesforce.com"
)
#Flag to indicate whether the instance is production or sandbox
# Flag to indicate whether the instance is production or sandbox
is_sandbox: bool = Field(
default=False,
description="Connect to Sandbox instance of your Salesforce"
default=False, description="Connect to Sandbox instance of your Salesforce"
)
access_token: Optional[str] = Field(description="Access token for instance url")

Expand Down Expand Up @@ -211,7 +210,7 @@ def __init__(self, config: SalesforceConfig, ctx: PipelineContext) -> None:
instance_url=self.config.instance_url,
session_id=self.config.access_token,
session=self.session,
domain='test' if self.config.is_sandbox else None
domain="test" if self.config.is_sandbox else None,
)
elif self.config.auth is SalesforceAuthType.USERNAME_PASSWORD:
logger.debug("Username/Password Provided in Config")
Expand All @@ -230,7 +229,7 @@ def __init__(self, config: SalesforceConfig, ctx: PipelineContext) -> None:
password=self.config.password,
security_token=self.config.security_token,
session=self.session,
domain='test' if self.config.is_sandbox else None
domain="test" if self.config.is_sandbox else None,
)

except Exception as e:
Expand Down

0 comments on commit 6e02a88

Please sign in to comment.