fix API incorrect behaviour while returning records data: API always must return type in upper case, but at this moment it returns record type as it was provided on record creation

This commit is contained in:
Yaroshevich, Denis
2021-03-09 11:28:09 +03:00
parent d688c6123a
commit 88b003130e
+1 -1
View File
@@ -141,7 +141,7 @@ class GCoreProvider(BaseProvider):
values = defaultdict(defaultdict)
records, exists = self.zone_records(zone)
for record in records:
_type = record["type"]
_type = record["type"].upper()
if _type not in self.SUPPORTS:
continue
rr_name = record["name"].replace(zone.name, "")