add status !

pull/208/head
Sebdraven 2018-06-29 16:17:32 +02:00
parent 09c52788b8
commit f3962d2d05
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def handle_domain(api, domain, misperrors):
if status_ok:
result_filtered['results'].extend(r)
else:
misperrors['error'] = 'Error pastries result'
misperrors['error'] = 'Error dns result'
return misperrors
return result_filtered
@ -91,6 +91,7 @@ def expand_domain_info(api, misperror,domain):
results = api.domain(domain)
if results:
status_ok = True
if 'current_dns' in results:
if 'values' in results['current_dns']['ns']:
ns_servers = [ns_entry['nameserver'] for ns_entry in