Skip to content

Commit 4cf2db1

Browse files
ankediarjeberhard
authored andcommitted
Fix unit test.
1 parent 7003fc7 commit 4cf2db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/Namespaces.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public static SelectionStrategy fromValue(String value) {
256256
*/
257257
static SelectionStrategy getSelectionStrategy() {
258258
return Optional.ofNullable(HelmAccess.getHelmVariable(SELECTION_STRATEGY_KEY))
259-
.or(() -> Optional.ofNullable(TuningParameters.getInstance().get(SELECTION_STRATEGY_KEY)))
259+
.or(() -> Optional.ofNullable(TuningParameters.getInstance()).map(i -> i.get(SELECTION_STRATEGY_KEY)))
260260
.map(SelectionStrategy::fromValue)
261261
.orElse(SelectionStrategy.LABEL_SELECTOR);
262262
}

0 commit comments

Comments
 (0)