mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-01 02:44:39 +02:00
3CX typo
This commit is contained in:
parent
fef7b9ff76
commit
074c597b64
@ -253,9 +253,9 @@ sub internal_update_checker {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
my $status = $self->request_api(method => 'GET', url_path =>'/api/UpdateChecker/GetFromParams', eval_content => 1);
|
my $status = $self->request_api(method => 'GET', url_path =>'/api/UpdateChecker/GetFromParams', eval_content => 1);
|
||||||
if(ref($status) eq 'HASH') {
|
if (ref($status) eq 'HASH') {
|
||||||
$status = $status->{tcxUpdate};
|
$status = $status->{tcxUpdate};
|
||||||
if(ref($status) ne 'ARRAY') {
|
if (ref($status) ne 'ARRAY') {
|
||||||
# See above note about strange content
|
# See above note about strange content
|
||||||
$status = JSON::XS->new->utf8->decode($status);
|
$status = JSON::XS->new->utf8->decode($status);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user