FS-11742 [mod_kazoo] add Core-UUID to Runtime-Info
This commit is contained in:
parent
ccfbd3eab0
commit
68e3eae826
|
@ -39,7 +39,9 @@ void kz_nodes_collect_runtime(cJSON *container)
|
|||
cJSON *retval = NULL;
|
||||
if(kz_json_api("status", NULL, &retval) == SWITCH_STATUS_SUCCESS) {
|
||||
if(retval != NULL && (!(retval->type & cJSON_NULL))) {
|
||||
cJSON_AddItemToObject(container, "Runtime-Info", cJSON_Duplicate(retval, 1));
|
||||
cJSON *val = cJSON_Duplicate(retval, 1);
|
||||
cJSON_AddItemToObject(val, "Core-UUID", cJSON_CreateString(switch_core_get_uuid()));
|
||||
cJSON_AddItemToObject(container, "Runtime-Info", val);
|
||||
}
|
||||
}
|
||||
if(retval) {
|
||||
|
|
Loading…
Reference in New Issue