We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa79547 commit d3fe394Copy full SHA for d3fe394
cloudflare-ddns.py
@@ -263,7 +263,10 @@ def updateIPs(ips):
263
config = None
264
try:
265
with open(os.path.join(CONFIG_PATH, "config.json")) as config_file:
266
- config = json.loads(Template(config_file.read()).safe_substitute(ENV_VARS))
+ if len(ENV_VARS) != 0:
267
+ config = json.loads(Template(config_file.read()).safe_substitute(ENV_VARS))
268
+ else:
269
+ config = json.loads(config_file.read())
270
except:
271
print("😡 Error reading config.json")
272
# wait 10 seconds to prevent excessive logging on docker auto restart
@@ -313,4 +316,4 @@ def updateIPs(ips):
313
316
print("❓ Unrecognized parameter '" +
314
317
sys.argv[1] + "'. Stopping now.")
315
318
else:
- updateIPs(getIPs())
319
+ updateIPs(getIPs())
0 commit comments