mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
api: return path status as string
This commit is contained in:
parent
60c90408c4
commit
0525dfc383
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue