mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-23 09:54:14 +00:00
STILL FAIL
This commit is contained in:
parent
34f8055e93
commit
d21aaf600f
@ -156,7 +156,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
|
|||||||
|
|
||||||
/* check if environment variables set the keys */
|
/* check if environment variables set the keys */
|
||||||
if (!zstr(envfile)) {
|
if (!zstr(envfile)) {
|
||||||
file = switch_core_strdup(pool, envfile);
|
file = strdup(envfile);
|
||||||
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO,
|
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO,
|
||||||
// "Using GOOGLE_APPLICATION_CREDENTIALS environment variables for GCS access on profile \"%s\"\n", profile->name);
|
// "Using GOOGLE_APPLICATION_CREDENTIALS environment variables for GCS access on profile \"%s\"\n", profile->name);
|
||||||
} else {
|
} else {
|
||||||
@ -194,6 +194,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
|
|||||||
if (status != SWITCH_STATUS_SUCCESS) {
|
if (status != SWITCH_STATUS_SUCCESS) {
|
||||||
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERR, "Could not close credencial file\n", profile->bytes_per_block);
|
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERR, "Could not close credencial file\n", profile->bytes_per_block);
|
||||||
switch_safe_free(file);
|
switch_safe_free(file);
|
||||||
|
free(contents);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
json = cJSON_Parse(contents);
|
json = cJSON_Parse(contents);
|
||||||
@ -218,7 +219,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi
|
|||||||
strcpy(profile->region, jsonstr);
|
strcpy(profile->region, jsonstr);
|
||||||
}
|
}
|
||||||
cJSON_Delete(json);
|
cJSON_Delete(json);
|
||||||
free(contents);
|
switch_safe_free(contents);
|
||||||
} else {
|
} else {
|
||||||
switch_xml_t private_key = switch_xml_child(xml, "private_key");
|
switch_xml_t private_key = switch_xml_child(xml, "private_key");
|
||||||
switch_xml_t private_key_id = switch_xml_child(xml, "private_key_id");
|
switch_xml_t private_key_id = switch_xml_child(xml, "private_key_id");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user