Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sun-mgmt): the default plink command was not applied #5369

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/hardware/server/sun/mgmt_cards/mode/showfaults.pm
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ sub check_options {
command => $self->{option_results}->{command_plink}
);

$self->{option_results}->{command} = 'plink'
if (!defined($self->{option_results}->{command}) || $self->{option_results}->{command} eq '');
$self->{option_results}->{command_plink} = 'plink'
if (!defined($self->{option_results}->{command_plink}) || $self->{option_results}->{command_plink} eq '');
}

sub run {
Expand Down Expand Up @@ -132,25 +132,25 @@ __END__

=head1 MODE

Check Sun 'T1xxx', 'T2xxx' Hardware (through ALOM4v).
Check Sun C<T1xxx>, C<T2xxx> management cards hardware (using C<ALOM4v>).

=over 8

=item B<--hostname>

Hostname to query.
Define the hostname to query.

=item B<--username>

ssh username.
Define the ssh username.

=item B<--password>

ssh password.
Define the ssh password.

=item B<--command-plink>

Plink command (default: plink). Use to set a path.
Define the C<plink> command (default: C<plink>).

=item B<--timeout>

Expand Down
20 changes: 10 additions & 10 deletions src/hardware/server/sun/mgmt_cards/mode/showfaulty.pm
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ sub check_options {
command => $self->{option_results}->{command_plink}
);

$self->{option_results}->{command} = 'plink'
if (!defined($self->{option_results}->{command}) || $self->{option_results}->{command} eq '');
$self->{option_results}->{command_plink} = 'plink'
if (!defined($self->{option_results}->{command_plink}) || $self->{option_results}->{command_plink} eq '');
}

sub run {
Expand Down Expand Up @@ -185,29 +185,29 @@ __END__

=head1 MODE

Check Sun 'T3-x', 'T4-x' and 'T5xxx' Hardware (through ILOM).
Check Sun C<T3-x>, C<T4-x> and C<T5xxx> management cards hardware (using C<ILOM>).

=over 8

=item B<--hostname>

Hostname to query.
Define the hostname to query.

=item B<--username>

ssh username.
Define the ssh username.

=item B<--password>

ssh password.
Define the ssh password.

=item B<--memory>
=item B<--command-plink>

Returns new errors (retention file is used by the following option).
Define the C<plink> command (default: C<plink>).

=item B<--command-plink>
=item B<--memory>

Plink command (default: plink). Use to set a path.
Returns new errors (retention file is used by the following option).

=item B<--timeout>

Expand Down
Loading