don't overwrite provmethod - 3557471

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2012-08-17 16:16:12 +00:00
parent 449278bf97
commit 67a96aa58d

View File

@ -8298,7 +8298,15 @@ sub prenimnodeset
push @{$rsp->{data}}, "Updating the spot named \'$i\'.\n";
xCAT::MsgUtils->message("I", $rsp, $callback);
my $rc = &updatespot($i, \%imghash, \@nodelist, $callback, $subreq);
# need list of nodes that use this image only!!!
my @osinodes;
foreach my $n (@nodelist) {
if ($i eq $nodeosi{$n} ) {
push @osinodes, $n;
}
}
my $rc = &updatespot($i, \%imghash, \@osinodes, $callback, $subreq);
if ($rc != 0)
{
my $rsp;
@ -9812,7 +9820,16 @@ sub mkdsklsnode
# if this has a shared_root resource then
# it might need statelite setup
my $rc=xCAT::InstUtils->dolitesetup($image, \%imagehash, \@nodelist, $callback, $subreq);
# need list of nodes that use this image only!!!
my @osinodes;
foreach my $n (@nodelist) {
if ($image eq $nodeosi{$n} ) {
push @osinodes, $n;
}
}
my $rc=xCAT::InstUtils->dolitesetup($image, \%imagehash, \@osinodes, $callback, $subreq);
if ($rc eq 1) { # error
my $rsp;
push @{$rsp->{data}}, qq{Could not complete the statelite setup.};