From 315c17eb4885d0eeac5e2ceb5d28f10ceb6ecb9b Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 12 Aug 2022 11:53:33 -0400 Subject: [PATCH] Island: Remove unneeded ANALYTICS_URL constant --- monkey/monkey_island/cc/server_setup.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/monkey/monkey_island/cc/server_setup.py b/monkey/monkey_island/cc/server_setup.py index 72d174993..b9366124b 100644 --- a/monkey/monkey_island/cc/server_setup.py +++ b/monkey/monkey_island/cc/server_setup.py @@ -219,15 +219,13 @@ def _log_web_interface_access_urls(): ) -ANALYTICS_URL = ( - "https://m15mjynko3.execute-api.us-east-1.amazonaws.com/default?version={" - "version}&deployment={deployment}" -) - - def _send_analytics(deployment: Deployment, version: Version): def _inner(deployment: Deployment, version: Version): - url = ANALYTICS_URL.format(deployment=deployment.value, version=version.version_number) + url = ( + "https://m15mjynko3.execute-api.us-east-1.amazonaws.com/default" + f"?version={version.version_number}&deployment={deployment.value}" + ) + try: response = requests.get(url).json() logger.info(