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