Fixing add to context
This commit is contained in:
parent
2e04364edc
commit
cadd9ec02d
|
@ -108,8 +108,6 @@ class RestISPublisher extends ISPublisher {
|
|||
@Override
|
||||
public void publishPlugins(Map<String, Class<? extends Plugin>> availablePlugins) throws Exception {
|
||||
|
||||
UUID contextUUID = resourceRegistryClient.getCurrentContext().getHeader().getUUID();
|
||||
|
||||
for(String pluginName : availablePlugins.keySet()) {
|
||||
|
||||
Plugin plugin = PluginManager.getPlugin(pluginName);
|
||||
|
@ -124,7 +122,7 @@ class RestISPublisher extends ISPublisher {
|
|||
} catch (AvailableInAnotherContextException e) {
|
||||
runningPlugin = new RunningPluginImpl();
|
||||
runningPlugin.setHeader(new HeaderImpl(pluginUUID));
|
||||
resourceRegistryPublisher.addToContext(contextUUID, runningPlugin);
|
||||
resourceRegistryPublisher.addToCurrentContext(runningPlugin);
|
||||
} catch (ResourceRegistryException e) {
|
||||
throw e;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue