From a029bac904a479f753ac8f9b584cacf5e6b95d4d Mon Sep 17 00:00:00 2001 From: David Date: Fri, 22 Nov 2024 16:24:14 -0500 Subject: [PATCH] add quotes to regex for terraform outputs --- infrastructure/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/deploy.py b/infrastructure/deploy.py index 69189a7e..272ee56f 100644 --- a/infrastructure/deploy.py +++ b/infrastructure/deploy.py @@ -245,7 +245,7 @@ def restart_api_if_still_running(args, api_ip_address): exit(terraform_code) ip_address_match = re.match( - r".*\napi_server_1_ip = (\d+\.\d+\.\d+\.\d+)\n.*", terraform_output, re.DOTALL + r".*\napi_server_1_ip = \"(\d+\.\d+\.\d+\.\d+)\"\n.*", terraform_output, re.DOTALL ) if ip_address_match: