moving gen files in subfolder
This commit is contained in:
parent
fee0f35f45
commit
84cf40c212
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -242,7 +242,7 @@ def write_dns_reverse_file(api_client):
|
||||||
mx_records=mx_records,
|
mx_records=mx_records,
|
||||||
ptr_records = ptr_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:
|
with open(filename, 'w+') as f:
|
||||||
f.write(zone_file_content)
|
f.write(zone_file_content)
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ def write_dns_reverse_file(api_client):
|
||||||
ptr_records = ptr_records)
|
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:
|
with open(filename, 'a') as f:
|
||||||
f.write(zone_file_content)
|
f.write(zone_file_content)
|
||||||
else:
|
else:
|
||||||
|
@ -289,7 +289,7 @@ def write_dns_reverse_file(api_client):
|
||||||
ptr_records = ptr_records)
|
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:
|
with open(filename, 'w+') as f:
|
||||||
f.write(zone_file_content)
|
f.write(zone_file_content)
|
||||||
zone_v6.append(zone6_name)
|
zone_v6.append(zone6_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue