fix: Resolve SyntaxError in sync.py due to multiline string literals
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 23s
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 23s
This commit is contained in:
6
sync.py
6
sync.py
@@ -174,8 +174,7 @@ def generate_zone_file_fwd(ipam_data, plugin_records):
|
|||||||
header.extend(extra_headers)
|
header.extend(extra_headers)
|
||||||
header.append("")
|
header.append("")
|
||||||
|
|
||||||
content = "\n".join(header) + "\n; --- Records ---
|
content = "\n".join(header) + "\n; --- Records ---\n" + "\n".join(all_records) + "\n"
|
||||||
" + "\n".join(all_records) + "\n"
|
|
||||||
|
|
||||||
write_atomic(OUTPUT_FILE_FWD, content)
|
write_atomic(OUTPUT_FILE_FWD, content)
|
||||||
log(f"SUCCESS: Forward Zone geschrieben ({len(all_records)} Records).")
|
log(f"SUCCESS: Forward Zone geschrieben ({len(all_records)} Records).")
|
||||||
@@ -219,8 +218,7 @@ def generate_zone_file_rev(ipam_data, plugin_records):
|
|||||||
|
|
||||||
header.append("")
|
header.append("")
|
||||||
|
|
||||||
content = "\n".join(header) + "\n; --- PTR Records ---
|
content = "\n".join(header) + "\n; --- PTR Records ---\n" + "\n".join(ptr_records) + "\n"
|
||||||
" + "\n".join(ptr_records) + "\n"
|
|
||||||
|
|
||||||
write_atomic(OUTPUT_FILE_REV, content)
|
write_atomic(OUTPUT_FILE_REV, content)
|
||||||
log(f"SUCCESS: Reverse Zone geschrieben ({len(ptr_records)} Records).")
|
log(f"SUCCESS: Reverse Zone geschrieben ({len(ptr_records)} Records).")
|
||||||
|
|||||||
Reference in New Issue
Block a user