Formatting cloudflare.py with black
@@ -32,7 +32,9 @@ def update_record(zone_name, record_name, record_type, record_address):
else:
raise ValueError(f"Cloudflare zone {zone_name} not found")
- existing_record = cf.zones.dns_records.get(zone_id, params={"name": f'{record_name}.{zone_name}', "type": record_type})
+ existing_record = cf.zones.dns_records.get(
+ zone_id, params={"name": f"{record_name}.{zone_name}", "type": record_type}
+ )
if existing_record:
logger.info(
f"record name={record_name} type={record_type} address={record_address} already exists updating"
