defect 3779: change the output of driver injection to make it sensible

This commit is contained in:
daniceexi 2013-09-25 01:49:56 -04:00
parent 25dd2ce800
commit f9c1bd930e
2 changed files with 6 additions and 4 deletions

View File

@ -3143,10 +3143,12 @@ sub insert_dd {
@rpm_drivers = keys %dnhash;
if (@rpm_list) {
if (@driver_list) {
if (@rpm_drivers) {
push @{$rsp->{data}}, "The drivers:".join(',', sort(@rpm_drivers))." from ".join(',', sort(@rpm_list))." have been injected to initrd.";
} elsif ($Injectalldriver) {
push @{$rsp->{data}}, "All the drivers from :".join(',', sort(@rpm_list))." have been injected to initrd.";
} else {
push @{$rsp->{data}}, "No driver was injected to initrd.";
}
}

View File

@ -2298,10 +2298,10 @@ sub insert_dd () {
@rpm_drivers = keys %dnhash;
if (@rpm_list) {
if (@driver_list) {
if (@rpm_drivers) {
push @{$rsp->{data}}, "The drivers:".join(',', sort(@rpm_drivers))." from ".join(',', sort(@rpm_list))." have been injected to initrd.";
} elsif ($Injectalldriver) {
push @{$rsp->{data}}, "All the drivers from :".join(',', sort(@rpm_list))." have been injected to initrd.";
} else {
push @{$rsp->{data}}, "No driver was injected to initrd.";
}
}
xCAT::MsgUtils->message("I", $rsp, $callback);