Skip to content

Commit 273debe

Browse files
authored
Merge pull request #99 from LelouBil/patch-2
Added a way to specify a comment for records created with this tool
2 parents b6c5593 + 3a19918 commit 273debe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/usr/sbin/cloudflare-companion

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def init_doms_from_env():
9999
'zone_id': os.environ["{}_ZONE_ID".format(k)],
100100
'ttl': int(os.environ.get("{}_TTL".format(k), DEFAULT_TTL)),
101101
'target_domain': os.environ.get("{}_TARGET_DOMAIN".format(k), target_domain),
102+
'comment': os.environ.get("{}_COMMENT".format(k)),
102103
'excluded_sub_domains': list(filter(None, os.environ.get("{}_EXCLUDED_SUB_DOMAINS".format(k), "").split(','))),
103104
}
104105

@@ -180,6 +181,7 @@ def point_domain(name, domain_infos):
180181
u'content': domain_info['target_domain'],
181182
u'ttl': int(domain_info['ttl']),
182183
u'proxied': domain_info['proxied']
184+
u'comment': domain_info['comment']
183185
}
184186
if REFRESH_ENTRIES:
185187
try:

0 commit comments

Comments
 (0)