mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-08 19:35:40 +00:00
Fix #247
This commit is contained in:
parent
3d8d94f280
commit
77f0deade8
@ -942,7 +942,7 @@ class Record(object):
|
|||||||
# validate record first
|
# validate record first
|
||||||
r = self.get_record_data(domain)
|
r = self.get_record_data(domain)
|
||||||
records = r['records']
|
records = r['records']
|
||||||
check = filter(lambda check: check['name'] == self.name, records)
|
check = list(filter(lambda check: check['name'] == self.name, records))
|
||||||
if check:
|
if check:
|
||||||
r = check[0]
|
r = check[0]
|
||||||
if r['type'] in ('A', 'AAAA' ,'CNAME'):
|
if r['type'] in ('A', 'AAAA' ,'CNAME'):
|
||||||
|
Loading…
Reference in New Issue
Block a user