Skip to content

Commit

Permalink
add check to only lower case CAA records
Browse files Browse the repository at this point in the history
  • Loading branch information
zakriya committed Aug 27, 2024
1 parent 8a78842 commit 5fc68d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dim/dim/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5fc68d0

Please sign in to comment.