Browse Source

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

pull/681/head
Yaroshevich, Denis 5 years ago
parent
commit
88b003130e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      octodns/provider/gcore.py

+ 1
- 1
octodns/provider/gcore.py View File

@ -141,7 +141,7 @@ class GCoreProvider(BaseProvider):
values = defaultdict(defaultdict) values = defaultdict(defaultdict)
records, exists = self.zone_records(zone) records, exists = self.zone_records(zone)
for record in records: for record in records:
_type = record["type"]
_type = record["type"].upper()
if _type not in self.SUPPORTS: if _type not in self.SUPPORTS:
continue continue
rr_name = record["name"].replace(zone.name, "") rr_name = record["name"].replace(zone.name, "")


Loading…
Cancel
Save