diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-23 12:48:00 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-23 12:48:08 +0100 |
commit | 2140012535797296ae170c1d0595eacf126bc50d (patch) | |
tree | 7238165f76703d40b86e87f042313a4808754dcb | |
parent | 9c69f112de52833ea5e723c0235b8c0bcd0d85d8 (diff) |
rest: set center in /repository/add
Set it to 1, ogCP and ogCLI never use this, and this REST API is never
used by the old web console.
-rw-r--r-- | src/rest.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5400,7 +5400,9 @@ static int og_cmd_post_repository_add(json_t *element, struct og_msg_params *params, char *buffer_reply) { - struct og_repository repo = {}; + struct og_repository repo = { + .center = 1, /* never used, set it to 1. */ + }; const char *key, *msglog; struct in_addr addr; struct og_dbi *dbi; |