]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No need for [*] on debug policies
authorNick Porter <nick@portercomputing.co.uk>
Wed, 18 Jan 2023 14:27:48 +0000 (14:27 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Feb 2023 16:57:31 +0000 (10:57 -0600)
raddb/policy.d/debug
src/tests/keywords/policy.conf
src/tests/modules/unit_test_module.conf

index 08b4491890ff070fe2622554435829e0e11f6289..8b5ffaca64e3e1125d299048a3b536ee5e056918 100644 (file)
@@ -2,7 +2,7 @@
 #  Outputs the contents of the control list in debugging (-X) mode
 #
 debug_control {
-       if ("%(debug_attr:control[*])" == '') {
+       if ("%(debug_attr:control)" == '') {
                noop
        }
 }
@@ -11,7 +11,7 @@ debug_control {
 #  Outputs the contents of the request list in debugging (-X) mode
 #
 debug_request {
-       if ("%(debug_attr:request[*])" == '') {
+       if ("%(debug_attr:request)" == '') {
                noop
        }
 }
@@ -20,7 +20,7 @@ debug_request {
 #  Outputs the contents of the coa list in debugging (-X) mode
 #
 debug_coa {
-       if ("%(debug_attr:coa[*])" == '') {
+       if ("%(debug_attr:coa)" == '') {
                noop
        }
 }
@@ -29,7 +29,7 @@ debug_coa {
 #  Outputs the contents of the reply list in debugging (-X) mode
 #
 debug_reply {
-       if ("%(debug_attr:reply[*])" == '') {
+       if ("%(debug_attr:reply)" == '') {
                noop
        }
 }
@@ -38,7 +38,7 @@ debug_reply {
 #  Outputs the contents of the session state list in debugging (-X) mode
 #
 debug_session_state {
-       if ("%(debug_attr:session-state[*])" == '') {
+       if ("%(debug_attr:session-state)" == '') {
                noop
        }
 }
index 06b075d7cc834e5e45ff0306de37c1cd67570619..e6fa5de2b3200e10e64d42ec393b15784fc5dba0 100644 (file)
@@ -6,7 +6,7 @@
 #  Outputs the contents of the control list in debugging (-X) mode
 #
 debug_control {
-       if("%(debug_attr:control[*])" == '') {
+       if("%(debug_attr:control)" == '') {
                noop
        }
 }
@@ -15,7 +15,7 @@ debug_control {
 #  Outputs the contents of the request list in debugging (-X) mode
 #
 debug_request {
-       if("%(debug_attr:request[*])" == '') {
+       if("%(debug_attr:request)" == '') {
                noop
        }
 }
@@ -24,7 +24,7 @@ debug_request {
 #  Outputs the contents of the reply list in debugging (-X) mode
 #
 debug_reply {
-       if("%(debug_attr:reply[*])" == '') {
+       if("%(debug_attr:reply)" == '') {
                noop
        }
 }
index c8983aca4ddfb2d1b94f35d44813c16e8d6a761e..dfd169b415e2c628e566cb1d85c1e6db7c852f1f 100644 (file)
@@ -70,7 +70,7 @@ policy {
        #  Outputs the contents of the control list in debugging (-X) mode
        #
        debug_control {
-               if("%(debug_attr:control[*])" == '') {
+               if("%(debug_attr:control)" == '') {
                        noop
                }
        }
@@ -79,7 +79,7 @@ policy {
        #  Outputs the contents of the request list in debugging (-X) mode
        #
        debug_request {
-               if("%(debug_attr:request[*])" == '') {
+               if("%(debug_attr:request)" == '') {
                        noop
                }
        }
@@ -88,7 +88,7 @@ policy {
        #  Outputs the contents of the reply list in debugging (-X) mode
        #
        debug_reply {
-               if("%(debug_attr:reply[*])" == '') {
+               if("%(debug_attr:reply)" == '') {
                        noop
                }
        }
@@ -97,7 +97,7 @@ policy {
        #  Outputs the contents of the session state list in debugging (-X) mode
        #
        debug_session_state {
-               if("%(debug_attr:session-state[*])" == '') {
+               if("%(debug_attr:session-state)" == '') {
                        noop
                }
        }