This commit is contained in:
Daniel Langbein 2023-03-28 18:23:37 +02:00
parent 0367c505d3
commit 8e76f6de1e

View File

@ -45,7 +45,7 @@ def main():
if update_record_destination(api, domain, hostname, type_, destination=destination): if update_record_destination(api, domain, hostname, type_, destination=destination):
print(f'Set {hostname}.{domain} {type_} record to {destination}') print(f'Set {hostname}.{domain} {type_} record to {destination}')
else: else:
print(f'The {hostname}.{domain} {type_} record points already to {destination}.') print(f'The {hostname}.{domain} {type_} record points already to {destination}')
else: else:
raise Exception(f'DNS record type {type_} is not supported.') raise Exception(f'DNS record type {type_} is not supported.')