]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Document setTag(Response)Action behaviour
authorSander Steffann <sander@steffann.nl>
Tue, 20 Jul 2021 10:50:19 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Jul 2021 10:50:19 +0000 (12:50 +0200)
Explicitly document that setTagAction and setTagResponseAction do not overwrite existing tag values.

pdns/dnsdistdist/docs/rules-actions.rst

index 835d99631540e0bb45ef79dd7d1d40e0f39ecf09..2b9d78b6519b34961a30f4af1407403a7040d7f1 100644 (file)
@@ -1334,6 +1334,7 @@ The following actions exist.
   .. versionadded:: 1.6.0
 
   Associate a tag named ``name`` with a value of ``value`` to this query, that will be passed on to the response.
+  This function will not overwrite an existing tag. If the tag already exists it will keep its original value.
   Subsequent rules are processed after this action.
   Note that this function was called :func:`TagAction` before 1.6.0.
 
@@ -1345,6 +1346,7 @@ The following actions exist.
   .. versionadded:: 1.6.0
 
   Associate a tag named ``name`` with a value of ``value`` to this response.
+  This function will not overwrite an existing tag. If the tag already exists it will keep its original value.
   Subsequent rules are processed after this action.
   Note that this function was called :func:`TagResponseAction` before 1.6.0.