Skip to content

Commit

Permalink
Fix missed instances of accessing the DatasetConfig.dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
pattisdr committed Dec 21, 2022
1 parent 611049d commit 3b093f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fides/api/ops/service/connectors/email_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def email_connector_erasure_send(db: Session, privacy_request: PrivacyRequest) -
if not template_values:
logger.info(
"No email sent: no template values saved for '{}'",
ds.dataset.get("fides_key"),
ds.ctl_dataset.fides_key,
)
return

Expand All @@ -196,7 +196,7 @@ def email_connector_erasure_send(db: Session, privacy_request: PrivacyRequest) -
)
):
logger.info(
"No email sent: no masking needed on '{}'", ds.dataset.get("fides_key")
"No email sent: no masking needed on '{}'", ds.ctl_dataset.fides_key
)
return

Expand All @@ -213,15 +213,15 @@ def email_connector_erasure_send(db: Session, privacy_request: PrivacyRequest) -
logger.info(
"Email send succeeded for request '{}' for dataset: '{}'",
privacy_request.id,
ds.dataset.get("fides_key"),
ds.ctl_dataset.fides_key,
)
AuditLog.create(
db=db,
data={
"user_id": "system",
"privacy_request_id": privacy_request.id,
"action": AuditLogAction.email_sent,
"message": f"Erasure email instructions dispatched for '{ds.dataset.get('fides_key')}'",
"message": f"Erasure email instructions dispatched for '{ds.ctl_dataset.fides_key}'",
},
)

Expand Down

0 comments on commit 3b093f2

Please sign in to comment.