mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 14:08:47 -04:00
put number all on one line
This commit is contained in:
@@ -63,11 +63,18 @@ class AwsSnsClient(SmsClient):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
non_scrubbable = " ".join(sender)
|
if isinstance(sender, str):
|
||||||
default_num = " ".join(self.current_app.config["AWS_US_TOLL_FREE_NUMBER"])
|
non_scrubbable = " ".join(sender)
|
||||||
self.current_app.logger.info(
|
default_num = " ".join(
|
||||||
f"notify-api-1385 sender {non_scrubbable} is a {type(sender)} default is a {type(default_num)}"
|
self.current_app.config["AWS_US_TOLL_FREE_NUMBER"]
|
||||||
)
|
)
|
||||||
|
self.current_app.logger.info(
|
||||||
|
f"notify-api-1385 sender {non_scrubbable} is a {type(sender)} default is a {type(default_num)}"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.current_app.logger.warning(
|
||||||
|
f"notify-api-1385 sender is type {type(sender)}!! {sender}"
|
||||||
|
)
|
||||||
if self._valid_sender_number(sender):
|
if self._valid_sender_number(sender):
|
||||||
self.current_app.logger.info(
|
self.current_app.logger.info(
|
||||||
f"notify-api-1385 use valid sender {non_scrubbable} instead of default {default_num}"
|
f"notify-api-1385 use valid sender {non_scrubbable} instead of default {default_num}"
|
||||||
@@ -79,7 +86,7 @@ class AwsSnsClient(SmsClient):
|
|||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
self.current_app.logger.info(
|
self.current_app.logger.info(
|
||||||
f"notify-api-1385 use default {default_num} instead of invalid sender {non_scrubbable}"
|
f"notify-api-1385 use default {default_num} instead of invalid sender"
|
||||||
)
|
)
|
||||||
|
|
||||||
attributes["AWS.MM.SMS.OriginationNumber"] = {
|
attributes["AWS.MM.SMS.OriginationNumber"] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user