summaryrefslogtreecommitdiff
path: root/src/conf_mode/dynamic_dns.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-27 11:46:51 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-27 11:51:53 +0100
commit2bf12b579e083a8b527d3202ced365b8adf32625 (patch)
treebce48dcc8aede9d3578c374f86a7932319de58e0 /src/conf_mode/dynamic_dns.py
parentcff252427c1aa9c8fe0cf7a305c2a5a294c71773 (diff)
downloadvyos-1x-2bf12b579e083a8b527d3202ced365b8adf32625.tar.gz
vyos-1x-2bf12b579e083a8b527d3202ced365b8adf32625.zip
template: T2388: move mkdir/chmod/chown within render()
Diffstat (limited to 'src/conf_mode/dynamic_dns.py')
-rwxr-xr-xsrc/conf_mode/dynamic_dns.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dynamic_dns.py
index 038f77cf9..3386324ae 100755
--- a/src/conf_mode/dynamic_dns.py
+++ b/src/conf_mode/dynamic_dns.py
@@ -217,10 +217,6 @@ def generate(dyndns):
if dyndns['deleted']:
return None
- dirname = os.path.dirname(config_file)
- if not os.path.exists(dirname):
- os.mkdir(dirname)
-
render(config_file, 'dynamic-dns/ddclient.conf.tmpl', dyndns)
# Config file must be accessible only by its owner