Fix a Rule Query Bug 65/19065/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 16 Oct 2017 11:07:43 +0000 (19:07 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 16 Oct 2017 11:07:43 +0000 (19:07 +0800)
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 <fu.guangrong@zte.com.cn>
rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDao.java

index 648be06..85980e5 100644 (file)
@@ -80,6 +80,7 @@ public class CorrelationRuleQueryDao {
         correlationRule.setContent((String) value.get("content"));\r
         correlationRule.setVendor((String) value.get("vendor"));\r
         correlationRule.setPackageName((String) value.get("package"));\r
+        correlationRule.setClosedControlLoopName((String) value.get("ctrlloop"));\r
         return correlationRule;\r
     }\r
 \r