diff --git a/server/src/main/java/org/opensearch/plugins/PluginInfo.java b/server/src/main/java/org/opensearch/plugins/PluginInfo.java index b6030f4ded5e5..73b960a86eba8 100644 --- a/server/src/main/java/org/opensearch/plugins/PluginInfo.java +++ b/server/src/main/java/org/opensearch/plugins/PluginInfo.java @@ -232,7 +232,7 @@ This works for currently supported range notations (=,~) } else { out.writeString(name); } - out.writeStringCollection(extendedPlugins); + out.writeStringCollection(getExtendedPluginNames()); out.writeBoolean(hasNativeController); } @@ -417,6 +417,15 @@ public String getFolderName() { * * @return the names of the plugins extended */ + public List getExtendedPluginNames() { + return extendedPlugins.stream().map(s -> s.split(";")[0]).collect(Collectors.toUnmodifiableList()); + } + + /** + * Other plugins this plugin extends through SPI including information about optionality. + * + * @return the names of the plugins extended including optionality. i.e. opensearch-job-scheduler;optional=true + */ public List getExtendedPlugins() { return extendedPlugins; }