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: