From 40ed5ff5b2f826f7cfa8ec0aaff2aa74043866ef Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Mon, 17 Aug 2020 13:15:48 -0400 Subject: [PATCH] [#1384] Corrected value for no matching lease results Several places stated command which found no matching lease(s) returned a 2, when in fact they return 3 (see CONTROL_RESULT_EMPTY). --- doc/sphinx/arm/hooks-lease-cmds.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/sphinx/arm/hooks-lease-cmds.rst b/doc/sphinx/arm/hooks-lease-cmds.rst index cd5bf1d973..cb5c38deb4 100644 --- a/doc/sphinx/arm/hooks-lease-cmds.rst +++ b/doc/sphinx/arm/hooks-lease-cmds.rst @@ -476,7 +476,7 @@ is assumed. ``leaseX-get`` returns a result that indicates a result of the operation and lease details, if found. It has one of the following values: 0 -(success), 1 (error), or 2 (empty). An empty result means that a query +(success), 1 (error), or 3 (empty). An empty result means that a query has been completed properly, but the object (a lease in this case) has not been found. The lease parameters, if found, are returned as arguments. @@ -923,7 +923,7 @@ An example of ``lease6-wipe`` is: } The commands return a text description of the number of leases removed, -plus the status code 0 (success) if any leases were removed or 2 (empty) +plus the status code 0 (success) if any leases were removed or 3 (empty) if there were no leases. Status code 1 (error) may be returned if the parameters are incorrect or some other exception is encountered. @@ -975,7 +975,7 @@ An example of the ``lease6-resend-ddns`` query is: } ``leaseX-resend-ddns`` returns a result that indicates a result of the operation. -It has one of the following values: 0 (success), 1 (error), or 2 (empty). An empty +It has one of the following values: 0 (success), 1 (error), or 3 (empty). An empty result means that a query has been completed properly, but the object (a lease in this case) has not been found. -- 2.47.2