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 return response
def delete_record(form_data, rr_items): 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"]) keyring = create_keyring(form_data["key_name"])
except Exception, err: else:
raise Exception("Error creating keyring in delete_record: %s" % err) keyring = None
dns_server = form_data["dns_server"] dns_server = form_data["dns_server"]
delete_response = [] delete_response = []

View File

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