]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
uses tostring support of the qtype argument
authortcely <tcely@users.noreply.github.com>
Mon, 4 Jun 2018 06:20:23 +0000 (02:20 -0400)
committertcely <tcely@users.noreply.github.com>
Mon, 4 Jun 2018 06:20:23 +0000 (02:20 -0400)
modules/luabackend/test2/pdns-luabackend.lua

index 50be50dc5bf7416b403eeaccda14262c1239e6d6..7680b72e9e3c904e2962831e3f12d3b002a485e1 100644 (file)
@@ -141,9 +141,7 @@ end
 
 
 function lookup(qtype, qname, domain_id)
-       if ("table" == type(qtype)) then
-               qtype = qtype.name
-       end
+       qtype = tostring(qtype)
        logger(log_debug, "(l_lookup)", "qtype:", qtype, " qname:", qname, " domain_id:", domain_id )
 
        rrset = {}