remove debug

This commit is contained in:
garnier-quentin 2020-01-29 11:09:03 +01:00
parent 55b457332c
commit 4313817509
1 changed files with 0 additions and 18 deletions

View File

@ -148,24 +148,6 @@ sub settings {
sub request_api {
my ($self, %options) = @_;
my $tutu = do {
local $/ = undef;
if (!open my $fh, "<", '/tmp/plop.txt') {
$self->{output}->add_option_msg(short_msg => "Could not open file /tmp/plop.txt : $!");
$self->{output}->option_exit();
}
<$fh>;
};
my $tutu2;
eval {
$tutu2 = JSON::XS->new->utf8->decode($tutu);
};
if ($@) {
$self->{output}->add_option_msg(short_msg => "cannot decode response (add --debug option to display returned content)");
$self->{output}->option_exit();
}
return $tutu2;
$self->settings();
my ($fh, $content);
my $lockfile = $self->{lockfile_dir} . '/polycom_trio_' . md5_hex($self->{hostname}) . '.lock';