2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #2388 from zet809/fix_issue_2362

Fix issue 2362: if packimage is not run, osimage in the chain table w…
This commit is contained in:
chenglch
2017-01-10 17:36:38 +08:00
committed by GitHub

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;
}