Fix field count check 16/96616/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Jul 2021 12:36:52 +0000 (14:36 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 8 Jul 2021 13:26:52 +0000 (13:26 +0000)
This is a simple copy&paste error which slipped past review, fix it up.

Change-Id: Ia381754abc7ec9d3adf53066ab2f8910e5554123
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 7c7e349b1e459e67465d42b496b287253256e5da)

restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/ReadDataTransactionUtil.java

index 3aeb3518b094963488e89c37bffcbc4226806630..7e979769674b2064162b80db12eefc55cab21ba7 100644 (file)
@@ -127,7 +127,7 @@ public final class ReadDataTransactionUtil {
         checkParameterCount(content, RestconfDataServiceConstant.ReadData.CONTENT);
         checkParameterCount(depth, RestconfDataServiceConstant.ReadData.DEPTH);
         checkParameterCount(fields, RestconfDataServiceConstant.ReadData.FIELDS);
-        checkParameterCount(fields, RestconfDataServiceConstant.ReadData.WITH_DEFAULTS);
+        checkParameterCount(withDefaults, RestconfDataServiceConstant.ReadData.WITH_DEFAULTS);
 
         // check and set content
         final String contentValue = content.get(0);