Pau Espin Pedrol has submitted this change and it was merged. (
https://gerrit.osmocom.org/11907 )
Change subject: ipaccess-config: Generate valid JSON output when using the -G
parameter
......................................................................
ipaccess-config: Generate valid JSON output when using the -G parameter
JSON names require double quotes.
Change-Id: I660fd89c37dfc2543a4bf7699da091458fe08cec
---
M src/ipaccess/ipaccess-config.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
Pau Espin Pedrol: Looks good to me, approved
diff --git a/src/ipaccess/ipaccess-config.c b/src/ipaccess/ipaccess-config.c
index 7c81c5a..ed2a1a4 100644
--- a/src/ipaccess/ipaccess-config.c
+++ b/src/ipaccess/ipaccess-config.c
@@ -289,7 +289,7 @@
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;
}
--
To view, visit https://gerrit.osmocom.org/11907
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I660fd89c37dfc2543a4bf7699da091458fe08cec
Gerrit-Change-Number: 11907
Gerrit-PatchSet: 1
Gerrit-Owner: roox <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>