aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReo Inoue <inoue.reo@jp.fujitsu.com>2020-04-20 16:20:49 +0900
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-22 11:01:42 +0000
commit27d169b34e81a9d42eaa0b7aab3797227a379f30 (patch)
tree16386cddb949ae57fd61f84ac3160b90b169b1f3
parent60c01004daf199820825f9bf345a3ed8a96f8933 (diff)
Fix bug for class SwitchoverDetector
Signed-off-by: Reo Inoue <inoue.reo@jp.fujitsu.com> Issue-ID: SDC-2931 Change-Id: I6b40f538ff9ce7eed22ce71c542b188a8c866f26
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/switchover/detector/SwitchoverDetector.java2
1 files changed, 1 insertions, 1 deletions
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 {