#221180 There is no mechanism to prevent error message printed in kitimagepostdelete when disassociated kit with the image profile
This commit is contained in:
parent
f7bc702491
commit
58d19e79ec
@ -171,6 +171,12 @@ sub process_request {
|
||||
# Do the check
|
||||
my $imageprofile = parse_str_arg($request->{arg}->[0]);
|
||||
|
||||
if (! exists($request->{kitdata}))
|
||||
{
|
||||
$rsp->{data}->[0] = "Skipped running \"$command\" plugin command for \"$PLUGIN_KITNAME\" kit.";
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback);
|
||||
return;
|
||||
}
|
||||
my $kitdata = $request->{kitdata};
|
||||
if (! defined($kitdata)) {
|
||||
$kitdata = xCAT::KitPluginUtils->get_kits_used_by_image_profiles([$imageprofile]);
|
||||
@ -742,4 +748,4 @@ sub parse_list_arg {
|
||||
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user