Skip to content

Commit ea604b6

Browse files
authoredApr 29, 2024
Fix admin space: plugins __path__ was invalid JSON (#990)
1 parent feaf07f commit ea604b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎plugins/zenoh-plugin-trait/src/manager/dynamic_plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl<StartArgs: PluginStartArgs, Instance: PluginInstance> PluginStatus
142142
if let Some(starter) = &self.starter {
143143
starter.path()
144144
} else {
145-
"<not loaded>"
145+
"__not_loaded__"
146146
}
147147
}
148148
fn state(&self) -> PluginState {

‎plugins/zenoh-plugin-trait/src/manager/static_plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ where
5151
Some(P::PLUGIN_LONG_VERSION)
5252
}
5353
fn path(&self) -> &str {
54-
r#""<static>""#
54+
"__static_lib__"
5555
}
5656
fn state(&self) -> PluginState {
5757
self.instance

‎zenoh/src/net/runtime/adminspace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ fn plugins_status(context: &AdminContext, query: Query) {
800800
if let Err(e) = query
801801
.reply(Ok(Sample::new(
802802
key_expr,
803-
Value::from(plugin.path()).encoding(KnownEncoding::AppJson.into()),
803+
serde_json::Value::String(plugin.path().into()),
804804
)))
805805
.res()
806806
{

0 commit comments

Comments
 (0)