Skip to content

Commit 1682e00

Browse files
authored
Merge pull request #8 from antoniozh/main
Pin version and convert TTL to int
2 parents e201ca9 + eda6921 commit 1682e00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN set -x && \
3636
&& \
3737
\
3838
pip install \
39-
cloudflare \
39+
cloudflare==2.19.* \
4040
get-docker-secret \
4141
docker[tls] \
4242
&& \

install/usr/sbin/cloudflare-companion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import json
99
import os
1010
import re
1111

12-
DEFAULT_TTL = os.environ.get('DEFAULT_TTL', "1")
12+
DEFAULT_TTL = os.environ.get('DEFAULT_TTL', 1)
1313
SWARM_MODE = os.environ.get('SWARM_MODE', "FALSE")
1414
REFRESH_ENTRIES = os.environ.get('REFRESH_ENTRIES', "FALSE" )
1515
CONTAINER_LOG_LEVEL = os.environ.get('CONTAINER_LOG_LEVEL', "INFO")
@@ -47,7 +47,7 @@ def point_domain(name, doms):
4747
u'type': u'CNAME',
4848
u'name': name,
4949
u'content': target_domain,
50-
u'ttl': dom['ttl'],
50+
u'ttl': int(dom['ttl']),
5151
u'proxied': dom['proxied']
5252
}
5353
if REFRESH_ENTRIES is True :

0 commit comments

Comments
 (0)