fix wrong commit

git-svn-id: http://svn.merethis.net/centreon-esxd/trunk@42 a5eaa968-4c79-4d68-970d-af6011b5b055
This commit is contained in:
Quentin Garnier 2012-10-08 13:05:52 +00:00
parent 4cbffb1235
commit 5d11abb2e5
1 changed files with 1 additions and 7 deletions

View File

@ -169,7 +169,7 @@ sub get_entities_host {
eval {
$entity_views = $session1->find_entity_views(view_type => $view_type, properties => $properties, filter => $filters);
};
if ($@ =~ /decryption failed or bad record mac/) {
if ($@) {
writeLogFile(LOG_ESXD_ERROR, "'$whoaim' $@");
eval {
$entity_views = $session1->find_entity_views(view_type => $view_type, properties => $properties, filter => $filters);
@ -181,12 +181,6 @@ sub get_entities_host {
print_response("-1|Error: " . Data::Dumper::Dumper($lerror) . "\n");
return undef;
}
} elsif ($@) {
writeLogFile(LOG_ESXD_ERROR, "'$whoaim' $@");
my $lerror = $@;
$lerror =~ s/\n/ /g;
print_response("-1|Error: " . $lerror . "\n");
return undef;
}
if (!@$entity_views) {
my $status |= $MYERRORS_MASK{'UNKNOWN'};