ipaccess-config: Generate valid JSON output when using the -G parameter

JSON names require double quotes.

Change-Id: I660fd89c37dfc2543a4bf7699da091458fe08cec
This commit is contained in:
Martin Hauke 2018-11-23 20:49:56 +01:00
parent 6f379baa9b
commit 5c2485dcff
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ static int print_attr_rep(struct msgb *mb)
abis_nm_tlv_attr_unit_id(&tp, unit_id, sizeof(unit_id));
fprintf(stdout, "{ primary_oml_ip: \"%s\", primary_oml_port: %" PRIu16 ", unit_id: \"%s\" }\n",
fprintf(stdout, "{ \"primary_oml_ip\": \"%s\", \"primary_oml_port\": %" PRIu16 ", \"unit_id\": \"%s\" }\n",
oml_ip, oml_port, unit_id);
return 0;
}