Skip to content

Commit

Permalink
python buffer problem solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Feinburger committed Mar 28, 2024
1 parent 96101e7 commit 321ccd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ RUN pip install requests
#ENV DOWN_NUM=2
#ENV DOMAINS="watonomous.com:alvin-test,10.0.50.114,10.0.50.116:alvin-test2,10.0.50.113,10.0.50.115"

CMD ["python3", "main.py"]
CMD ["python3", "-u", "main.py"]
4 changes: 2 additions & 2 deletions cloudflare_dns.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
# cloudflare_dns.py

import requests, time, json, os
import requests, json, os

def find_record(ip_addr, zone_id):
# finds the record with the corresponding ip_addr and
Expand Down Expand Up @@ -80,4 +80,4 @@ def find_zones_under_account():
if response["success"]:
domain_dict = {response["result"][i]["name"]: response["result"][i]["id"] for i in range(len(response["result"]))}

return domain_dict
return domain_dict
2 changes: 1 addition & 1 deletion helper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
# helper.py

import os, socket, requests, time
import os, socket, requests
from cloudflare_dns import find_record, add_record, delete_record

get_timeout = int(os.environ["GET_TIMEOUT"])
Expand Down

0 comments on commit 321ccd7

Please sign in to comment.