]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1384] Corrected value for no matching lease results
authorThomas Markwalder <tmark@isc.org>
Mon, 17 Aug 2020 17:15:48 +0000 (13:15 -0400)
committerThomas Markwalder <tmark@isc.org>
Mon, 17 Aug 2020 17:15:48 +0000 (13:15 -0400)
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

index cd5bf1d9734bcfc5944903a0a3e7f7471179a1c0..cb5c38deb47355a2d5420066832b047270b5c6af 100644 (file)
@@ -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.