2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

update issue 1326

This commit is contained in:
bybai 2016-06-28 04:10:52 -04:00
parent 668177b826
commit 48422f11de

View File

@ -1636,6 +1636,12 @@ sub rmkit
# Remove this component from osimage.kitcomponents. Mark here.
my $ret = xCAT::Utils->runxcmd({ command => ['rmkitcomp'], arg => ['-f','-i',$entry->{imagename}, $kitcompname] }, $request_command, 0, 1);
if ( $::RUNCMD_RC ) {
my %rsp;
push@{ $rsp{data} }, "Failed to remove kit component $kitcomponent from $entry->{imagename}";
xCAT::MsgUtils->message( "E", \%rsp, $callback );
return 1;
}
}
}
}
@ -2640,7 +2646,7 @@ sub rmkitcomp
unless (@entries) {
my %rsp;
push@{ $rsp{data} }, "kitcomponent $kitcompdep basename does not exist";
xCAT::MsgUtils->message( "E", \%rsp, $callback );
xCAT::MsgUtils->message( "W", \%rsp, $callback );
}
my $kitcompdepname = get_highest_version('kitcompname', 'version', 'release', @entries);