RRDeleted response message.
This commit is contained in:
parent
af7379ad43
commit
3fcb3a0d64
@ -63,5 +63,12 @@ class DNSManager::Response
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
DNSManager.responses << DomainAdded
|
DNSManager.responses << DomainAdded
|
||||||
|
|
||||||
|
IPC::JSON.message RRDeleted, 18 do
|
||||||
|
property rrid : UInt32
|
||||||
|
def initialize(@rrid)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
DNSManager.responses << RRDeleted
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ class DNSManager::Storage
|
|||||||
# Update the zone.
|
# Update the zone.
|
||||||
zones_by_domain.update_or_create zone.domain, zone
|
zones_by_domain.update_or_create zone.domain, zone
|
||||||
|
|
||||||
Response::Success.new
|
Response::RRDeleted.new rrid
|
||||||
rescue e
|
rescue e
|
||||||
Baguette::Log.error "trying to remove a resource record in domain #{domain}: #{e}"
|
Baguette::Log.error "trying to remove a resource record in domain #{domain}: #{e}"
|
||||||
Response::Error.new "error while removing a resource record in domain #{domain}"
|
Response::Error.new "error while removing a resource record in domain #{domain}"
|
||||||
|
Loading…
Reference in New Issue
Block a user