diff --git a/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java b/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java index a374471ce3..73ff55392d 100644 --- a/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java +++ b/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java @@ -40,7 +40,7 @@ public OnBehalfOfConfig encryptionKey(String encryption_key) { @Override public XContentBuilder toXContent(XContentBuilder xContentBuilder, ToXContent.Params params) throws IOException { xContentBuilder.startObject(); - if (oboEnabled || oboEnabled == null) { + if (oboEnabled) { xContentBuilder.field("enabled", oboEnabled); } xContentBuilder.field("signing_key", signing_key);