Merge branch '5055-API-Nuevo-automatismo-para-generacion-graficas' into 'develop'
Deleted stderr for curl testing See merge request artica/pandorafms!3038
This commit is contained in:
commit
6c31f8aec9
|
@ -703,7 +703,7 @@ sub main() {
|
||||||
|
|
||||||
# Testing API url
|
# Testing API url
|
||||||
my $curl_execution = "'".$Config{'console_api_url'}."?op=get&op2=test&apipass=".$Config{"console_api_pass"}."&user=".$Config{"console_user"}."&pass=".$Config{"console_pass"}."'";
|
my $curl_execution = "'".$Config{'console_api_url'}."?op=get&op2=test&apipass=".$Config{"console_api_pass"}."&user=".$Config{"console_user"}."&pass=".$Config{"console_pass"}."'";
|
||||||
my $exe_testing_api = `curl $curl_execution`;
|
my $exe_testing_api = `curl $curl_execution 2>/dev/null`;
|
||||||
my @res_testing_api = split(',', $exe_testing_api);
|
my @res_testing_api = split(',', $exe_testing_api);
|
||||||
if ( $res_testing_api[0] ne 'OK' ) {
|
if ( $res_testing_api[0] ne 'OK' ) {
|
||||||
logger(\%Config, "Warning! The server does not have access to the API, this can trigger problems in the generation of reports and graphs.", 1);
|
logger(\%Config, "Warning! The server does not have access to the API, this can trigger problems in the generation of reports and graphs.", 1);
|
||||||
|
|
Loading…
Reference in New Issue