Skip to content

Commit 3b3158c

Browse files
Fix problem with addition of multiple default back-ends (#139)
1 parent 5e4a3a8 commit 3b3158c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ericsson/ei/frontend/utils/BackEndInstancesUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ public boolean checkIfInstanceNameAlreadyExist(JsonObject instance) {
113113
public boolean hasDefaultBackend() {
114114
for (BackEndInformation backendInformation : backEndInformationList) {
115115
if (backendInformation.isDefaultBackend()) {
116-
return false;
116+
return true;
117117
}
118118
}
119-
return true;
119+
return false;
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)