mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 17:15:11 +02:00
Fix log error
git-svn-id: http://svn.merethis.net/centreon-esxd/trunk@50 a5eaa968-4c79-4d68-970d-af6011b5b055
This commit is contained in:
parent
3572b61ed4
commit
232eff04dc
@ -107,7 +107,7 @@ if (defined($credstore_use) && defined($credstore_file) &&
|
||||
require VMware::VICredStore;
|
||||
|
||||
if (VMware::VICredStore::init(filename => $credstore_file) == 0) {
|
||||
writeLogFile("Credstore init failed: $@\n");
|
||||
writeLogFile(LOG_ESXD_ERROR, "Credstore init failed: $@\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ if (defined($credstore_use) && defined($credstore_file) &&
|
||||
foreach (keys %vsphere_server) {
|
||||
my $lpassword = VMware::VICredStore::get_password(server => $_, username => $vsphere_server{$_}->{'username'});
|
||||
if (!defined($lpassword)) {
|
||||
writeLogFile("Can't get password for couple host='" . $_ . "', username='" . $vsphere_server{$_}->{'username'} . "' : $@\n");
|
||||
writeLogFile(LOG_ESXD_ERROR, "Can't get password for couple host='" . $_ . "', username='" . $vsphere_server{$_}->{'username'} . "' : $@\n");
|
||||
exit(1);
|
||||
}
|
||||
$vsphere_server{$_}->{'password'} = $lpassword;
|
||||
|
Loading…
x
Reference in New Issue
Block a user