Skip to content

Commit

Permalink
mxraid_assemble: output from check honors verbose setting
Browse files Browse the repository at this point in the history
This is useful if only the exit code matters.
  • Loading branch information
thomas committed Mar 15, 2018
1 parent 2e5794e commit ee00118
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ my $hd = MxRaid::HostData->new($cd); $hd->verbose($VERBOSE);
my $utils = MxRaid::Utils->new();

if ($opts{c}) {
printf "# Database file :'%s'\n", $MDADMCONF_DB;
printf "# Record count : %d\n", $cd->number_of_db_records;
printf "# Successor labels: %s\n", join(', ', @{$cd->next_db_labels});
print "\n";
if ($VERBOSE >= 1) {
printf "# Database file :'%s'\n", $MDADMCONF_DB;
printf "# Record count : %d\n", $cd->number_of_db_records;
printf "# Successor labels: %s\n", join(', ', @{$cd->next_db_labels});
print "\n";
}
} else {
create_mdadm_configs();
}
Expand Down

0 comments on commit ee00118

Please sign in to comment.