diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm b/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm index 212aa60e6..cb9324870 100644 --- a/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm +++ b/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm @@ -172,7 +172,7 @@ sub process_request { my $imageprofile = parse_str_arg($request->{arg}->[0]); my $kitdata = $request->{kitdata}; - if (! defined($kitdata)) { + if (! defined($kitdata) && !($command eq "kitimagepostdelete")) { $kitdata = xCAT::KitPluginUtils->get_kits_used_by_image_profiles([$imageprofile]); $request->{kitdata} = $kitdata; } @@ -742,4 +742,4 @@ sub parse_list_arg { } -1; \ No newline at end of file +1;