diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 7b9b4e972..5210aea8b 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -1139,7 +1139,7 @@ sub rmkit my $kitcompnames; my @kitcomphash = $tabs{kitcomponent}->getAllAttribsWhere( "kitname = '$kitname'", 'kitcompname'); - if (defined(@entries) && (@entries > 0)) { + if (@entries && (@entries > 0)) { if($::VERBOSE){ my %rsp;