Commit c73b3afb authored by Pavel Spirek's avatar Pavel Spirek

Fixed bug in knot api

parent 6aea15d5
......@@ -273,7 +273,7 @@ class KnotConfig(KnotCtl):
# Removes a DNS zone from configuration section
def zone_remove(self, domain_name: str) -> JsonNodeT:
resp = self.unset_item(section="zone", identifier=None, item="domain", zone=domain_name)
resp = self.unset_item(section="zone", identifier=domain_name, item="domain")
return resp
# Adds a resource record to DNS zone
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment