Skip to content

Commit e1c6cb6

Browse files
committed
fix smoke tests
1 parent d1f6cd6 commit e1c6cb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/network/CreateNetworkOfferingCmd.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.LinkedHashSet;
2424
import java.util.List;
2525
import java.util.Map;
26+
import java.util.Objects;
2627
import java.util.Set;
2728
import java.util.stream.Collectors;
2829

@@ -235,7 +236,7 @@ public Long getServiceOfferingId() {
235236
}
236237

237238
public List<String> getSupportedServices() {
238-
if (!forNsx) {
239+
if (!isForNsx()) {
239240
return supportedServices == null ? new ArrayList<String>() : supportedServices;
240241
} else {
241242
List<String> services = new ArrayList<>(List.of(
@@ -283,7 +284,7 @@ public Boolean getForVpc() {
283284
}
284285

285286
public Boolean isForNsx() {
286-
return forNsx;
287+
return !Objects.isNull(forNsx) && forNsx;
287288
}
288289

289290
public String getNsxMode() {

0 commit comments

Comments
 (0)