+ Fix netdom mode

This commit is contained in:
garnier-quentin 2017-04-04 10:09:35 +02:00
parent 312d8321e6
commit 686a7c7845

View File

@ -54,9 +54,9 @@ sub netdom {
my $netdom_cmd = 'netdom verify '; my $netdom_cmd = 'netdom verify ';
$netdom_cmd .= ' /Domain:' . $self->{option_results}->{domain} if (defined($self->{option_results}->{domain}) && $self->{option_results}->{domain} ne ''); $netdom_cmd .= ' /Domain:' . $self->{option_results}->{domain} if (defined($self->{option_results}->{domain}) && $self->{option_results}->{domain} ne '');
if (defined($self->{option_results}->{workstation})) { if (defined($self->{option_results}->{workstation})) {
$netdom_cmd .= ' ' . . $self->{option_results}->{workstation}; $netdom_cmd .= ' ' . $self->{option_results}->{workstation};
} else { } else {
$netdom_cmd .= ' ' . . Win32::NodeName(); $netdom_cmd .= ' ' . Win32::NodeName();
} }
my ($stdout, $exit_code) = centreon::plugins::misc::windows_execute(output => $self->{output}, my ($stdout, $exit_code) = centreon::plugins::misc::windows_execute(output => $self->{output},