]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #8795 from omoerbeek/rec-lua-docs-policytag
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 7 Feb 2020 14:29:39 +0000 (15:29 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2020 14:29:39 +0000 (15:29 +0100)
rec: Remove duplicate *PolicyTags docs

pdns/recursordist/docs/lua-scripting/dq.rst

index d1b675e3291427852a898ca752b245c831f5cd8f..704c44149df78d370a7901928b9512dba28ad177 100644 (file)
@@ -168,10 +168,20 @@ The DNSQuestion object contains at least the following fields:
 
   .. method:: DNSQuestion:addPolicyTag(tag)
 
-     Add a policy tag.
+     Add policyTag ``tag`` to the list of policyTags.
 
      :param str tag: The tag to add
 
+  .. method:: DNSQuestion:getPolicyTags() -> {str}
+
+      Get the current policy tags as a table of strings.
+
+  .. method:: DNSQuestion:setPolicyTags(tags)
+
+      Set the policy tags to ``tags``, overwriting any existing policy tags.
+
+      :param {str} tags: The policy tags
+
   .. method:: DNSQuestion:discardPolicy(policyname)
 
      Skip the filtering policy (for example RPZ) named ``policyname`` for this query.
@@ -183,20 +193,10 @@ The DNSQuestion object contains at least the following fields:
 
       Returns the :class:`DNSHeader` of the query or nil.
 
-  .. method:: DNSQuestion:getPolicyTags() -> {str}
-
-      Get the current policy tags as a table of strings.
-
   .. method:: DNSQuestion:getRecords() -> {DNSRecord}
 
       Get a table of DNS Records in this DNS Question (or answer by now).
 
-  .. method:: DNSQuestion:setPolicyTags(tags)
-
-      Set the policy tags to ``tags``, overwriting any existing policy tags.
-
-      :param {str} tags: The policy tags
-
   .. method:: DNSQuestion:setRecords(records)
 
       After your edits, update the answers of this question
@@ -225,16 +225,6 @@ The DNSQuestion object contains at least the following fields:
 
       Returns the :class:`Netmask` specified in the EDNSSubnet option, or empty if there was none.
 
-  .. method:: DNSQuestion:addPolicyTag(tag)
-
-      Add policyTag ``tag`` to the list of policyTags
-
-      :param str tag: The tag to add
-
-  .. method:: DNSQuestion:getPolicyTags() -> {str}
-
-      Get a list the policyTags for this message.
-
 DNSHeader Object
 ================