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

Fix issue 2362: if packimage is not run, osimage in the chain table will fail on netboot images

This commit is contained in:
ertaozh 2017-01-10 04:27:05 -05:00
parent 491ad4c605
commit 91bfeeb16c

View File

@ -393,7 +393,8 @@ sub setdestiny {
if ($errored) {
my @myself = xCAT::NetworkUtils->determinehostname();
my $myname = $myself[ (scalar @myself) - 1 ];
$callback->({ errorcode => [1], error => "Some nodes failed to set up $state resources on server $myname, aborting" });
# The callback function point to xcatd::build_response, it use dclone to clone data, but it can only accept a reference. The error msg here is a simple string, and will cause dclone failed. Seems to be string array can be used by dclone.
$callback->({ errorcode => [1], error => ["Some nodes failed to set up $state resources on server $myname, aborting"] });
return;
}