From 0525dfc383eadaf79ab652c330450eb2af36c388 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 4 Jul 2020 17:16:31 +0200 Subject: [PATCH] api: return path status as string --- lib/api/actions/paths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/actions/paths.cpp b/lib/api/actions/paths.cpp index fdad5380f..703ade636 100644 --- a/lib/api/actions/paths.cpp +++ b/lib/api/actions/paths.cpp @@ -46,8 +46,8 @@ public: for (size_t i = 0; i < vlist_length(paths); i++) { struct vpath *p = (struct vpath *) vlist_at(paths, i); - json_t *json_path = json_pack("{ s: i }", - "state", p->state + json_t *json_path = json_pack("{ s: s }", + "state", state_print(p->state) ); /* Add all additional fields of node here.