roox has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/07/11907/1

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: newchange
Gerrit-Change-Id: I660fd89c37dfc2543a4bf7699da091458fe08cec
Gerrit-Change-Number: 11907
Gerrit-PatchSet: 1
Gerrit-Owner: roox <[email protected]>

Reply via email to