handles multiple syncfiles for an osimage

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-10-03 11:15:26 +00:00
parent cabf9274fa
commit 2361faaf6c

View File

@ -94,12 +94,15 @@ sub syncfiles {
xCAT::MsgUtils->message("S", "Cannot find synclist file for the $node");
return 0;
}
# call the xdcp plugin to handle the syncfile operation
my $args = ["-F", "$$synclist{$node}"];
my $env = ["DSH_RSYNC_FILE=$$synclist{$node}"];
$subreq->({command=>['xdcp'], node=>[$node], arg=>$args, env=>$env}, $callback);
# this can be a comma separated list of multiple
# syncfiles
my @sl = split(',',$$synclist{$node});
foreach my $synclistfile (@sl) {
# call the xdcp plugin to handle the syncfile operation
my $args = ["-F", "$synclistfile"];
my $env = ["DSH_RSYNC_FILE=$synclistfile"];
$subreq->({command=>['xdcp'], node=>[$node], arg=>$args, env=>$env}, $callback);
}
return 1;
}