Skip to content

Commit

Permalink
add quotes to regex for terraform outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmejia committed Nov 22, 2024
1 parent d3dd322 commit a029bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a029bac

Please sign in to comment.