From 2bf12b579e083a8b527d3202ced365b8adf32625 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Mon, 27 Apr 2020 11:46:51 +0100 Subject: template: T2388: move mkdir/chmod/chown within render() --- src/conf_mode/dhcpv6_relay.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/conf_mode/dhcpv6_relay.py') diff --git a/src/conf_mode/dhcpv6_relay.py b/src/conf_mode/dhcpv6_relay.py index cb5a4bbfb..ecc739063 100755 --- a/src/conf_mode/dhcpv6_relay.py +++ b/src/conf_mode/dhcpv6_relay.py @@ -84,11 +84,6 @@ def generate(relay): if relay is None: return None - # Create configuration directory on demand - dirname = os.path.dirname(config_file) - if not os.path.isdir(dirname): - os.mkdir(dirname) - render(config_file, 'dhcpv6-relay/config.tmpl', relay) return None -- cgit v1.2.3