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