remove cces debug

This commit is contained in:
garnier-quentin 2020-01-13 15:50:34 +01:00
parent 296f9c6afb
commit 4bb322e16d
1 changed files with 12 additions and 12 deletions

View File

@ -193,18 +193,18 @@ sub authenticate {
sub request_api {
my ($self, %options) = @_;
my $plop = do {
local $/ = undef;
if (!open my $fh, "<", '/tmp/plop.txt') {
$self->{output}->add_option_msg(short_msg => "Could not open file $self->{option_results}->{$_} : $!");
$self->{output}->option_exit();
}
<$fh>;
};
eval {
$plop = XMLin($plop, ForceArray => $options{ForceArray}, KeyAttr => []);
};
return $plop;
#my $plop = do {
# local $/ = undef;
# if (!open my $fh, "<", '/tmp/plop2.txt') {
# $self->{output}->add_option_msg(short_msg => "Could not open file $self->{option_results}->{$_} : $!");
# $self->{output}->option_exit();
# }
# <$fh>;
#};
#eval {
# $plop = XMLin($plop, ForceArray => $options{ForceArray}, KeyAttr => []);
#};
#return $plop;
$self->settings();
if (!defined($self->{session_cookie})) {