From: Guangrong Fu Date: Mon, 16 Oct 2017 11:07:43 +0000 (+0800) Subject: Fix a Rule Query Bug X-Git-Tag: v1.0.0~17 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F19065%2F1;p=holmes%2Frule-management.git Fix a Rule Query Bug Fix the problem that the control loop name is not returned when query rules. Change-Id: I53b3509a7b45fffb92a21c935962600813e3d0e1 Issue-ID: HOLMES-77 Signed-off-by: Guangrong Fu --- diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDao.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDao.java index 648be06..85980e5 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDao.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDao.java @@ -80,6 +80,7 @@ public class CorrelationRuleQueryDao { correlationRule.setContent((String) value.get("content")); correlationRule.setVendor((String) value.get("vendor")); correlationRule.setPackageName((String) value.get("package")); + correlationRule.setClosedControlLoopName((String) value.get("ctrlloop")); return correlationRule; }