<div dir="ltr">@Roland Kammerer: yes, that works too.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 12, 2020 at 1:08 PM Anton Tykhyy <<a href="mailto:atykhyy@gmail.com">atykhyy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To reproduce the bug:<br>
>> drbdsetup new-resource test 0; drbdsetup show --json|jq<br>
> parse error: Expected separator between values at line 6, column 21<br>
---<br>
user/v9/drbdsetup.c | 15 +++++++++------<br>
1 file changed, 9 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/user/v9/drbdsetup.c b/user/v9/drbdsetup.c<br>
index de752484..4798cf62 100644<br>
--- a/user/v9/drbdsetup.c<br>
+++ b/user/v9/drbdsetup.c<br>
@@ -2401,13 +2401,16 @@ static void show_resource_list_json(struct resources_list *resources_list, char*<br>
printf("\n");<br>
}<br>
<br>
- printI(QUOTED("volumes") ": [\n");<br>
- indent++;<br>
- for (device = devices; device; device = device->next)<br>
- show_volume_json(device);<br>
+ if (devices)<br>
+ {<br>
+ printI(QUOTED("volumes") ": [\n");<br>
+ indent++;<br>
+ for (device = devices; device; device = device->next)<br>
+ show_volume_json(device);<br>
<br>
- --indent;<br>
- printI("]\n");<br>
+ --indent;<br>
+ printI("]\n");<br>
+ }<br>
<br>
--indent;<br>
printI("}");<br>
-- <br>
2.21.0.windows.1<br>
<br>
</blockquote></div>