From 84cf40c2127fe6ec6079823c77d7128406d485b3 Mon Sep 17 00:00:00 2001 From: Charlie Jacomme Date: Tue, 7 Aug 2018 10:06:31 +0200 Subject: [PATCH] moving gen files in subfolder --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7739903..012acfb 100755 --- a/main.py +++ b/main.py @@ -242,7 +242,7 @@ def write_dns_reverse_file(api_client): mx_records=mx_records, ptr_records = ptr_records) - filename = 'dns.{zone}.zone'.format(zone=zone_name) + filename = 'generated/dns.{zone}.zone'.format(zone=zone_name) with open(filename, 'w+') as f: f.write(zone_file_content) @@ -278,7 +278,7 @@ def write_dns_reverse_file(api_client): ptr_records = ptr_records) - filename = 'dns.{zone}zone'.format(zone=zone6_name) + filename = 'generated/dns.{zone}zone'.format(zone=zone6_name) with open(filename, 'a') as f: f.write(zone_file_content) else: @@ -289,7 +289,7 @@ def write_dns_reverse_file(api_client): ptr_records = ptr_records) - filename = 'dns.{zone}zone'.format(zone=zone6_name) + filename = 'generated/dns.{zone}zone'.format(zone=zone6_name) with open(filename, 'w+') as f: f.write(zone_file_content) zone_v6.append(zone6_name)