Query the bind server object for its list of zones

This commit is contained in:
Jeffrey Forman 2011-10-01 16:58:10 -04:00
parent 546ae82e22
commit 987e1a4d35
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ def list_servers(request):
def view_server_zones(request, dns_hostname): def view_server_zones(request, dns_hostname):
""" Display the list of DNS zones a particular DNS host provides. """ """ Display the list of DNS zones a particular DNS host provides. """
zone_array = list_server_zones(dns_hostname) this_server = BindServer.objects.get(hostname=dns_hostname)
zone_array = this_server.list_zones()
if 'errors' in zone_array: if 'errors' in zone_array:
return render_to_response('bcommon/list_server_zones.htm', return render_to_response('bcommon/list_server_zones.htm',
{ 'errors' : zone_array['errors'], { 'errors' : zone_array['errors'],