deleting records works again. without tsig key.

This commit is contained in:
Jeffrey Forman 2012-10-18 06:34:22 -04:00
parent d2a6b38a2b
commit 5c453e9a8d
2 changed files with 8 additions and 3 deletions

View File

@ -90,10 +90,11 @@ def add_record(form_data):
return response
def delete_record(form_data, rr_items):
try:
"""Delete a list of DNS records passed as strings in rr_items."""
if ("key_name" in form_data and form_data["key_name"]):
keyring = create_keyring(form_data["key_name"])
except Exception, err:
raise Exception("Error creating keyring in delete_record: %s" % err)
else:
keyring = None
dns_server = form_data["dns_server"]
delete_response = []

View File

@ -1,5 +1,9 @@
{% extends "base.htm" %}
{% block pageheader %}
Home
{% endblock pageheader %}
{% block body %}
TODO(jforman): Build some sort of dashboard here