Skip to content
Snippets Groups Projects
Verified Commit ccc25cb6 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

UPD: domainfinder: return present_parent on direct match as well

parent 18956158
No related branches found
No related tags found
No related merge requests found
Pipeline #406560 passed
......@@ -41,7 +41,8 @@ async def search_domain(domain_request: DomainFinderRequest,
], superuser=True)
if len(r['fqdn_list']) > 0:
return DomainFinderResult(domain_found=True, parent_found=True)
return DomainFinderResult(domain_found=True, parent_found=True,
present_parent=r['fqdn_list'][0]['parent_value'])
found = False
fqdn = domain_request.fqdn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment