From 27d169b34e81a9d42eaa0b7aab3797227a379f30 Mon Sep 17 00:00:00 2001 From: Reo Inoue Date: Mon, 20 Apr 2020 16:20:49 +0900 Subject: Fix bug for class SwitchoverDetector Signed-off-by: Reo Inoue Issue-ID: SDC-2931 Change-Id: I6b40f538ff9ce7eed22ce71c542b188a8c866f26 --- .../org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java b/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java index f2f1668fb6..cbcbb03480 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java @@ -127,7 +127,7 @@ public class SwitchoverDetector { beMatch = queryBe(); feMatch = queryFe(); - if (beMatch == feMatch && beMatch != null) { + if (beMatch != null && beMatch.equals(feMatch)) { if (beMatch) { setSiteMode(SwitchoverDetectorState.ACTIVE.getState()); } else { -- cgit 1.2.3-korg