Skip to content

Commit

Permalink
tools/c7n_mailer - strip newlines from slack token (cloud-custodian#8645
Browse files Browse the repository at this point in the history
)
  • Loading branch information
delenamalan authored Jun 16, 2023
1 parent 0861541 commit 631c3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/c7n_mailer/c7n_mailer/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def handle_targets(self, message, sent_timestamp, email_delivery=True, sns_deliv
if self.config.get("slack_token"):
self.config["slack_token"] = decrypt(
self.config, self.logger, self.session, "slack_token"
)
).strip()

slack_delivery = SlackDelivery(self.config, self.logger, email_delivery)
slack_messages = slack_delivery.get_to_addrs_slack_messages_map(message)
Expand Down

0 comments on commit 631c3a9

Please sign in to comment.