From 5fc68d0506e3b066a1deda120ba587faf77c6d4e Mon Sep 17 00:00:00 2001 From: zakriya Date: Tue, 27 Aug 2024 14:13:08 +0200 Subject: [PATCH] add check to only lower case CAA records --- dim/dim/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dim/dim/rpc.py b/dim/dim/rpc.py index beb5244..3617c73 100644 --- a/dim/dim/rpc.py +++ b/dim/dim/rpc.py @@ -2182,8 +2182,8 @@ def registrar_account_update_zones(self, name): _update_registrar_keys(zone) @updating - def rr_create(self, zone=None, views=None, ttl=None, comment=None, profile=False, allow_overlap=False, **kwargs): - if 'property_value' in kwargs and isinstance(kwargs['property_value'], str): + def rr_create(self, zone=None, views=None, ttl=None, comment=None, profile=False, allow_overlap=False, **kwargs): + if 'property_value' in kwargs and isinstance(kwargs['property_value'], str) and kwargs['type'] == 'CAA': kwargs['property_value'] = kwargs['property_value'].lower() self._rr_create(zone=zone, views=views, ttl=ttl, comment=comment, profile=profile, allow_overlap=allow_overlap, **kwargs)