From 987e1a4d3576c7075d3bed68058b703e9becf930 Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Sat, 1 Oct 2011 16:58:10 -0400 Subject: [PATCH] Query the bind server object for its list of zones --- binder/bcommon/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binder/bcommon/views.py b/binder/bcommon/views.py index e00e52a..75361f7 100644 --- a/binder/bcommon/views.py +++ b/binder/bcommon/views.py @@ -27,7 +27,8 @@ def list_servers(request): def view_server_zones(request, dns_hostname): """ 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: return render_to_response('bcommon/list_server_zones.htm', { 'errors' : zone_array['errors'],