netbox-ddns/netbox_ddns/utils.py
2020-04-19 21:28:06 +02:00

6 lines
128 B
Python

def normalize_fqdn(dns_name: str) -> str:
if not dns_name:
return ''
return dns_name.lower().rstrip('.') + '.'