don't overwrite provmethod - 3557471

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13690 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2012-08-31 18:12:44 +00:00
parent a270d82762
commit a3476dd281

View File

@ -8271,7 +8271,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;
@ -9783,7 +9791,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.};