diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 10b8d5a1c..e44afa933 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -1440,10 +1440,6 @@ sub chkosimage return 0; } - # get this systems name as known by xCAT management node - my $Sname = xCAT::InstUtils->myxCATname(); - chomp $Sname; - # get the name of the primary NIM server # - either the NIMprime attr of the site table or the management node my $nimprime = xCAT::InstUtils->getnimprime(); @@ -1543,6 +1539,13 @@ sub chkosimage } } + if ( scalar(@install_list) == 0) { + my $rsp; + push @{$rsp->{data}}, "\nThere was no additional software listed in the \'otherpkgs\' or \'installp_bundle\' attributes.\n"; + xCAT::MsgUtils->message("I", $rsp, $callback); + return 0; + } + # get a list of software from the lpp_source dirs my @srclist;